Property | Type | Description | |
---|---|---|---|
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
Add | BsonDocument | ||
EnsureIsMaterialized | void | ||
GetDocumentId | bool | ||
SetDocumentId | void | ||
this | BsonValue |
Method | Description | |
---|---|---|
Add ( BsonElement element ) : BsonDocument |
Adds an element to the document.
|
|
Add ( string name, BsonValue value ) : BsonDocument |
Creates and adds an element to the document.
|
|
Add ( string name, BsonValue value, bool condition ) : BsonDocument |
Creates and adds an element to the document, but only if the condition is true.
|
|
Add ( string name, Func |
Creates and adds an element to the document, but only if the condition is true. If the condition is false the value factory is not called at all.
|
|
AddRange ( object>.Dictionary |
Adds elements to the document from a dictionary of key/value pairs.
|
|
AddRange ( IDictionary dictionary ) : BsonDocument |
Adds elements to the document from a dictionary of key/value pairs.
|
|
AddRange ( IEnumerable |
Adds a list of elements to the document.
|
|
AddRange ( object>.IEnumerable |
Adds elements to the document from a dictionary of key/value pairs.
|
|
Clear ( ) : void |
Clears the document (removes all elements).
|
|
Clone ( ) : BsonValue |
Creates a shallow clone of the document (see also DeepClone).
|
|
CompareTo ( BsonDocument other ) : int |
Compares this document to another document.
|
|
CompareTo ( BsonValue other ) : int |
Compares the BsonDocument to another BsonValue.
|
|
Contains ( string name ) : bool |
Tests whether the document contains an element with the specified name.
|
|
ContainsValue ( BsonValue value ) : bool |
Tests whether the document contains an element with the specified value.
|
|
DeepClone ( ) : BsonValue |
Creates a deep clone of the document (see also Clone).
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
Equals ( object obj ) : bool |
Determines whether the specified System.Object, is equal to this instance.
|
|
GetElement ( int index ) : BsonElement |
Gets an element of this document.
|
|
GetElement ( string name ) : BsonElement |
Gets an element of this document.
|
|
GetEnumerator ( ) : IEnumerator |
Gets an enumerator that can be used to enumerate the elements of this document.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
GetValue ( int index ) : BsonValue |
Gets the value of an element.
|
|
GetValue ( string name ) : BsonValue |
Gets the value of an element.
|
|
GetValue ( string name, BsonValue defaultValue ) : BsonValue |
Gets the value of an element or a default value if the element is not found.
|
|
InsertAt ( int index, BsonElement element ) : void |
Inserts a new element at a specified position.
|
|
Merge ( BsonDocument document ) : BsonDocument |
Merges another document into this one. Existing elements are not overwritten.
|
|
Merge ( BsonDocument document, bool overwriteExistingElements ) : BsonDocument |
Merges another document into this one, specifying whether existing elements are overwritten.
|
|
Remove ( string name ) : void |
Removes an element from this document (if duplicate element names are allowed then all elements with this name will be removed).
|
|
RemoveAt ( int index ) : void |
Removes an element from this document.
|
|
RemoveElement ( BsonElement element ) : void |
Removes an element from this document.
|
|
Set ( int index, BsonValue value ) : BsonDocument |
Sets the value of an element.
|
|
Set ( string name, BsonValue value ) : BsonDocument |
Sets the value of an element (an element will be added if no element with this name is found).
|
|
SetElement ( BsonElement element ) : BsonDocument |
Sets an element of the document (replaces any existing element with the same name or adds a new element if an element with the same name is not found).
|
|
SetElement ( int index, BsonElement element ) : BsonDocument |
Sets an element of the document (replacing the existing element at that position).
|
|
TryGetElement ( string name, BsonElement &value ) : bool |
Tries to get an element of this document.
|
|
TryGetValue ( string name, BsonValue &value ) : bool |
Tries to get the value of an element of this document.
|
|
this ( int index ) : BsonValue |
Gets or sets a value by position.
|
|
this ( string name ) : BsonValue |
Gets or sets a value by name.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources.
|
|
Materialize ( ) : IEnumerable |
Materializes the BsonDocument.
|
|
MaterializeCompleted ( ) : void |
Informs subclasses that the Materialize process completed so they can free any resources related to the unmaterialized state.
|
|
MaterializedOnDemandBsonDocument ( ) : System |
Initializes a new instance of the MaterializedOnDemandBsonDocument class.
|
|
ThrowIfDisposed ( ) : void |
Throws if disposed.
|
Method | Description | |
---|---|---|
Add ( ) : BsonDocument | ||
Add ( object>.Dictionary |
||
Add ( object>.Dictionary |
||
Add ( IDictionary dictionary ) : BsonDocument | ||
Add ( IDictionary dictionary, IEnumerable keys ) : BsonDocument | ||
Add ( object>.IDictionary |
||
Add ( object>.IDictionary |
||
Add ( IEnumerable |
||
EnsureIsMaterialized ( ) : void | ||
GetDocumentId ( object &id, |
||
SetDocumentId ( object id ) : void | ||
this ( string name, BsonValue defaultValue ) : BsonValue |
public Add ( BsonElement element ) : BsonDocument | ||
element | BsonElement | The element to add. |
return | BsonDocument |
public Add ( string name, BsonValue value ) : BsonDocument | ||
name | string | The name of the element. |
value | BsonValue | The value of the element. |
return | BsonDocument |
public Add ( string name, BsonValue value, bool condition ) : BsonDocument | ||
name | string | The name of the element. |
value | BsonValue | The value of the element. |
condition | bool | Whether to add the element to the document. |
return | BsonDocument |
public Add ( string name, Func |
||
name | string | The name of the element. |
valueFactory | Func |
A delegate called to compute the value of the element if condition is true. |
condition | bool | Whether to add the element to the document. |
return | BsonDocument |
public AddRange ( object>.Dictionary |
||
dictionary | object>.Dictionary | The dictionary. |
return | BsonDocument |
public AddRange ( IDictionary dictionary ) : BsonDocument | ||
dictionary | IDictionary | The dictionary. |
return | BsonDocument |
public AddRange ( IEnumerable |
||
elements | IEnumerable |
The list of elements. |
return | BsonDocument |
public AddRange ( object>.IEnumerable |
||
dictionary | object>.IEnumerable | The dictionary. |
return | BsonDocument |
public CompareTo ( BsonDocument other ) : int | ||
other | BsonDocument | The other document. |
return | int |
public CompareTo ( BsonValue other ) : int | ||
other | BsonValue | The other BsonValue. |
return | int |
public Contains ( string name ) : bool | ||
name | string | The name of the element to look for. |
return | bool |
public ContainsValue ( BsonValue value ) : bool | ||
value | BsonValue | The value of the element to look for. |
return | bool |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public Equals ( object obj ) : bool | ||
obj | object | The |
return | bool |
public GetElement ( int index ) : BsonElement | ||
index | int | The zero based index of the element. |
return | BsonElement |
public GetElement ( string name ) : BsonElement | ||
name | string | The name of the element. |
return | BsonElement |
public GetValue ( int index ) : BsonValue | ||
index | int | The zero based index of the element. |
return | BsonValue |
public GetValue ( string name ) : BsonValue | ||
name | string | The name of the element. |
return | BsonValue |
public GetValue ( string name, BsonValue defaultValue ) : BsonValue | ||
name | string | The name of the element. |
defaultValue | BsonValue | The default value returned if the element is not found. |
return | BsonValue |
public InsertAt ( int index, BsonElement element ) : void | ||
index | int | The position of the new element. |
element | BsonElement | The element. |
return | void |
protected abstract Materialize ( ) : IEnumerable |
||
return | IEnumerable |
protected abstract MaterializeCompleted ( ) : void | ||
return | void |
protected MaterializedOnDemandBsonDocument ( ) : System | ||
return | System |
public Merge ( BsonDocument document ) : BsonDocument | ||
document | BsonDocument | The other document. |
return | BsonDocument |
public Merge ( BsonDocument document, bool overwriteExistingElements ) : BsonDocument | ||
document | BsonDocument | The other document. |
overwriteExistingElements | bool | Whether to overwrite existing elements. |
return | BsonDocument |
public Remove ( string name ) : void | ||
name | string | The name of the element to remove. |
return | void |
public RemoveAt ( int index ) : void | ||
index | int | The zero based index of the element to remove. |
return | void |
public RemoveElement ( BsonElement element ) : void | ||
element | BsonElement | The element to remove. |
return | void |
public Set ( int index, BsonValue value ) : BsonDocument | ||
index | int | The zero based index of the element whose value is to be set. |
value | BsonValue | The new value. |
return | BsonDocument |
public Set ( string name, BsonValue value ) : BsonDocument | ||
name | string | The name of the element whose value is to be set. |
value | BsonValue | The new value. |
return | BsonDocument |
public SetElement ( BsonElement element ) : BsonDocument | ||
element | BsonElement | The new element. |
return | BsonDocument |
public SetElement ( int index, BsonElement element ) : BsonDocument | ||
index | int | The zero based index of the element to replace. |
element | BsonElement | The new element. |
return | BsonDocument |
public TryGetElement ( string name, BsonElement &value ) : bool | ||
name | string | The name of the element. |
value | BsonElement | The element. |
return | bool |
public TryGetValue ( string name, BsonValue &value ) : bool | ||
name | string | The name of the element. |
value | BsonValue | The value of the element. |
return | bool |