GetLastError() публичный Метод

Most operations do not have a return code in order to save the client from having to wait for results. GetLastError can be called to retrieve the return code if clients want one.
public GetLastError ( ) : Document
Результат Document
Пример #1
0
        public void TestGetLastErrorNoError()
        {
            db["noerror"].Insert(new Document()
            {
                { "a", 1 }, { "b", 2 }
            });
            Document error = db.GetLastError();

            Assert.AreEqual(MongoDBNull.Value, error["err"]);
        }