C# Class MongoDB.Driver.UpdateDocument

Represents a BSON document that can be used where an IMongoUpdate is expected.
Inheritance: BsonDocument, IMongoUpdate
Mostrar archivo Open project: Qiredev/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
UpdateDocument ( ) : System

Initializes a new instance of the UpdateDocument class.

UpdateDocument ( BsonElement element ) : System

Initializes a new instance of the UpdateDocument class and adds one element.

UpdateDocument ( IDictionary dictionary ) : System

Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.

UpdateDocument ( IDictionary dictionary, IEnumerable keys ) : System

Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.

UpdateDocument ( IEnumerable elements ) : System

Initializes a new instance of the UpdateDocument class and adds new elements from a list of elements.

UpdateDocument ( bool allowDuplicateNames ) : System

Initializes a new instance of the UpdateDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).

UpdateDocument ( string name, BsonValue value ) : System

Initializes a new instance of the UpdateDocument class and creates and adds a new element.

Method Details

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class.
public UpdateDocument ( ) : System
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class and adds one element.
public UpdateDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
public UpdateDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class and adds new elements from a dictionary of key/value pairs.
public UpdateDocument ( IDictionary dictionary, IEnumerable keys ) : System
dictionary IDictionary A dictionary to initialize the document from.
keys IEnumerable A list of keys to select values from the dictionary.
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class and adds new elements from a list of elements.
public UpdateDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public UpdateDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
return System

UpdateDocument() public method

Initializes a new instance of the UpdateDocument class and creates and adds a new element.
public UpdateDocument ( string name, BsonValue value ) : System
name string The name of the element to add to the document.
value BsonValue The value of the element to add to the document.
return System