Class WriteConcernResult
Represents the results of an operation performed with an acknowledged WriteConcern.
[Serializable]
public class WriteConcernResult
- Inheritance
-
WriteConcernResult
- Inherited Members
Constructors
WriteConcernResult(BsonDocument)
Initializes a new instance of the WriteConcernResult class.
public WriteConcernResult(BsonDocument response)
Parameters
response
BsonDocumentThe response.
Properties
DocumentsAffected
Gets the number of documents affected.
public long DocumentsAffected { get; }
Property Value
HasLastErrorMessage
Gets whether the result has a LastErrorMessage.
public bool HasLastErrorMessage { get; }
Property Value
LastErrorMessage
Gets the last error message (null if none).
public string LastErrorMessage { get; }
Property Value
Response
Gets the wrapped result.
public BsonDocument Response { get; }
Property Value
UpdatedExisting
Gets whether the last command updated an existing document.
public bool UpdatedExisting { get; }
Property Value
Upserted
Gets the _id of an upsert that resulted in an insert.
public BsonValue Upserted { get; }