Method | Description | |
---|---|---|
CommandDocument ( ) : System |
Initializes a new instance of the CommandDocument class.
|
|
CommandDocument ( BsonElement element ) : System |
Initializes a new instance of the CommandDocument class and adds one element.
|
|
CommandDocument ( object>.Dictionary |
Initializes a new instance of the CommandDocument class and adds new elements from a dictionary of key/value pairs.
|
|
CommandDocument ( IDictionary dictionary ) : System |
Initializes a new instance of the CommandDocument class and adds new elements from a dictionary of key/value pairs.
|
|
CommandDocument ( IEnumerable |
Initializes a new instance of the CommandDocument class and adds new elements from a list of elements.
|
|
CommandDocument ( object>.IEnumerable |
Initializes a new instance of the CommandDocument class and adds new elements from a dictionary of key/value pairs.
|
|
CommandDocument ( bool allowDuplicateNames ) : System |
Initializes a new instance of the CommandDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
|
|
CommandDocument ( string name, BsonValue value ) : System |
Initializes a new instance of the CommandDocument class and creates and adds a new element.
|
Method | Description | |
---|---|---|
CommandDocument ( object>.Dictionary |
||
CommandDocument ( IDictionary dictionary, IEnumerable keys ) : System | ||
CommandDocument ( object>.IDictionary |
public CommandDocument ( BsonElement element ) : System | ||
element | BsonElement | An element to add to the document. |
return | System |
public CommandDocument ( object>.Dictionary |
||
dictionary | object>.Dictionary | A dictionary to initialize the document from. |
return | System |
public CommandDocument ( IDictionary dictionary ) : System | ||
dictionary | IDictionary | A dictionary to initialize the document from. |
return | System |
public CommandDocument ( IEnumerable |
||
elements | IEnumerable |
A list of elements to add to the document. |
return | System |
public CommandDocument ( object>.IEnumerable |
||
dictionary | object>.IEnumerable | A dictionary to initialize the document from. |
return | System |
public CommandDocument ( bool allowDuplicateNames ) : System | ||
allowDuplicateNames | bool | Whether duplicate element names are allowed. |
return | System |
public CommandDocument ( 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 |