Show / Hide Table of Contents

    Class MongoClient.UpdateResult

    The result of UpdateOneAsync(Object, Object, Boolean) or UpdateManyAsync(Object, Object, Boolean) operation.

    Inheritance
    Object
    MongoClient.UpdateResult
    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    [Preserve(AllMembers = true)]
    public class UpdateResult

    Properties

    | Improve this Doc View Source

    MatchedCount

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 _id of the inserted document or null if the operation didn't result in an insertion.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Realm
    Generated by DocFX