MongoDB.Driver.Database.GetLastErrorAndFSync C# (CSharp) Method

GetLastErrorAndFSync() public method

Retrieves the last error and forces the database to fsync all files before returning.
Server version 1.3+
public GetLastErrorAndFSync ( ) : Document
return Document
        public Document GetLastErrorAndFSync()
        {
            return SendCommand(new Document(){{"getlasterror", 1.0},{"fsync", true}});
        }