Class MongoClient.UpdateResult
The result of UpdateOneAsync(Object, Object, Boolean) or UpdateManyAsync(Object, Object, Boolean) operation.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
[Preserve(AllMembers = true)]
public class UpdateResult
Properties
| Improve this Doc View SourceMatchedCount
Gets the number of documents matched by the filter.
Declaration
[BsonElement("matchedCount")]
public int MatchedCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of matched documents. |
ModifiedCount
Gets the number of documents modified by the operation.
Declaration
[BsonElement("modifiedCount")]
public int ModifiedCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of modified documents. |
UpsertedId
Gets the _id
of the inserted document if the operation resulted in an insertion.
Declaration
[BsonElement("upsertedId")]
public object UpsertedId { get; }
Property Value
Type | Description |
---|---|
Object | The |