BsonDocument Methods |
The BsonDocument type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add(DictionaryString, Object) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(IDictionaryString, Object) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(IDictionary) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(BsonElement) |
Adds an element to the document.
|
![]() | Add(BsonElement) | Obsolete.
Adds a list of elements to the document.
|
![]() | Add(IEnumerableBsonElement) | Obsolete.
Adds a list of elements to the document.
|
![]() | Add(DictionaryString, Object, IEnumerableString) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(IDictionaryString, Object, IEnumerableString) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(IDictionary, IEnumerable) | Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | Add(String, BsonValue) |
Creates and adds an element to the document.
|
![]() | Add(String, BsonValue, Boolean) |
Creates and adds an element to the document, but only if the condition is true.
|
![]() | Add(String, FuncBsonValue, Boolean) |
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(DictionaryString, Object) |
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | AddRange(IEnumerableKeyValuePairString, Object) |
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | AddRange(IDictionary) |
Adds elements to the document from a dictionary of key/value pairs.
|
![]() | AddRange(IEnumerableBsonElement) |
Adds a list of elements to the document.
|
![]() | Clear |
Clears the document (removes all elements).
|
![]() | Clone |
Creates a shallow clone of the document (see also DeepClone).
(Overrides BsonValueClone.) |
![]() | CompareTo(BsonDocument) |
Compares this document to another document.
|
![]() | CompareTo(BsonValue) |
Compares the BsonDocument to another BsonValue.
(Overrides BsonValueCompareTo(BsonValue).) |
![]() | CompareTypeTo |
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.) |
![]() | Contains |
Tests whether the document contains an element with the specified name.
|
![]() | ContainsValue |
Tests whether the document contains an element with the specified value.
|
![]() ![]() | Create |
Creates a new BsonDocument by mapping an object to a BsonDocument.
|
![]() | DeepClone |
Creates a deep clone of the document (see also Clone).
(Overrides BsonValueDeepClone.) |
![]() | Equals(Object) |
Compares this BsonDocument to another object.
(Overrides BsonValueEquals(Object).) |
![]() | Equals(BsonDocument) |
Compares this document to another document.
|
![]() | Equals(BsonValue) |
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetElement(Int32) |
Gets an element of this document.
|
![]() | GetElement(String) |
Gets an element of this document.
|
![]() | GetEnumerator |
Gets an enumerator that can be used to enumerate the elements of this document.
|
![]() | GetHashCode |
Gets the hash code.
(Overrides BsonValueGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValue(Int32) |
Gets the value of an element.
|
![]() | GetValue(String) |
Gets the value of an element.
|
![]() | GetValue(String, BsonValue) |
Gets the value of an element or a default value if the element is not found.
|
![]() | IndexOfName |
Gets the index of an element.
|
![]() | InsertAt |
Inserts a new element at a specified position.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Merge(BsonDocument) |
Merges another document into this one. Existing elements are not overwritten.
|
![]() | Merge(BsonDocument, Boolean) |
Merges another document into this one, specifying whether existing elements are overwritten.
|
![]() | OperatorEqualsImplementation |
Implementation of operator ==.
(Inherited from BsonValue.) |
![]() ![]() | Parse |
Parses a JSON string and returns a BsonDocument.
|
![]() | Remove |
Removes an element from this document (if duplicate element names are allowed
then all elements with this name will be removed).
|
![]() | RemoveAt |
Removes an element from this document.
|
![]() | RemoveElement |
Removes an element from this document.
|
![]() | Set(Int32, BsonValue) |
Sets the value of an element.
|
![]() | Set(String, BsonValue) |
Sets the value of an element (an element will be added if no element with this name is found).
|
![]() | SetElement(BsonElement) |
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(Int32, BsonElement) |
Sets an element of the document (replacing the existing element at that position).
|
![]() | ToBoolean |
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.) |
![]() | ToDictionary |
Converts the BsonDocument to a Dictionary<string, object>.
|
![]() | ToDouble |
Converts this BsonValue to a Double.
(Inherited from BsonValue.) |
![]() | ToHashtable |
Converts the BsonDocument to a Hashtable.
|
![]() | ToInt32 |
Converts this BsonValue to an Int32.
(Inherited from BsonValue.) |
![]() | ToInt64 |
Converts this BsonValue to an Int64.
(Inherited from BsonValue.) |
![]() | ToLocalTime |
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.) |
![]() | ToNullableLocalTime |
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.) |
![]() | ToNullableUniversalTime |
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.) |
![]() | ToString |
Returns a string representation of the document.
(Overrides ObjectToString.) |
![]() | ToUniversalTime |
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.) |
![]() | TryGetElement |
Tries to get an element of this document.
|
![]() | TryGetValue |
Tries to get the value of an element of this document.
|
Name | Description | |
---|---|---|
![]() | ContainsAllBsonElement |
Determines whether a sequence contains all of the specified values.
(Defined by LinqToMongo.) |
![]() | ContainsAnyBsonElement |
Determines whether a sequence contains any of the specified values.
(Defined by LinqToMongo.) |
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |