Class UpdateDocument
Represents a BSON document that can be used where an IMongoUpdate is expected.
[BsonSerializer(typeof(UpdateDocument.Serializer))]
public class UpdateDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoUpdate
- Inheritance
-
UpdateDocument
- Implements
- Inherited Members
- Extension Methods
Constructors
- UpdateDocument()
Initializes a new instance of the UpdateDocument class.
- UpdateDocument(BsonElement)
Initializes a new instance of the UpdateDocument class and adds one element.
- UpdateDocument(params BsonElement[])
Initializes a new instance of the UpdateDocument class and adds one or more elements.
- UpdateDocument(bool)
Initializes a new instance of the UpdateDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
- UpdateDocument(Dictionary<string, object>)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(Dictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(IDictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(IEnumerable<BsonElement>)
Initializes a new instance of the UpdateDocument class and adds new elements from a list of elements.
- UpdateDocument(IEnumerable<KeyValuePair<string, object>>)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(IDictionary)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(IDictionary, IEnumerable)
Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
- UpdateDocument(string, BsonValue)
Initializes a new instance of the UpdateDocument class and creates and adds a new element.