Click or drag to resize
BsonDocumentWrapper Methods

The BsonDocumentWrapper type exposes the following members.

Methods
  NameDescription
Public methodAdd(DictionaryString, Object) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(IDictionaryString, Object) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(IDictionary) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(BsonElement)
Adds an element to the document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(BsonElement) Obsolete.
Adds a list of elements to the document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(IEnumerableBsonElement) Obsolete.
Adds a list of elements to the document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(DictionaryString, Object, IEnumerableString) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(IDictionaryString, Object, IEnumerableString) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(IDictionary, IEnumerable) Obsolete.
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(String, BsonValue)
Creates and adds an element to the document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(String, BsonValue, Boolean)
Creates and adds an element to the document, but only if the condition is true.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAdd(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.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAddRange(DictionaryString, Object)
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAddRange(IEnumerableKeyValuePairString, Object)
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAddRange(IDictionary)
Adds elements to the document from a dictionary of key/value pairs.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodAddRange(IEnumerableBsonElement)
Adds a list of elements to the document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodClear
Clears the document (removes all elements).
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodClone
Creates a shallow clone of the document (see also DeepClone).
(Overrides MaterializedOnDemandBsonDocumentClone.)
Public methodCompareTo(BsonDocument)
Compares this document to another document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodCompareTo(BsonValue)
Compares the BsonDocument to another BsonValue.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.)
Public methodContains
Tests whether the document contains an element with the specified name.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodContainsValue
Tests whether the document contains an element with the specified value.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodStatic memberCreate(Type, Object)
Creates a new instance of the BsonDocumentWrapper class.
Public methodStatic memberCreateTNominalType(TNominalType)
Creates a new instance of the BsonDocumentWrapper class.
Public methodStatic memberCreateMultiple(Type, IEnumerable)
Creates a list of new instances of the BsonDocumentWrapper class.
Public methodStatic memberCreateMultipleTNominalType(IEnumerableTNominalType)
Creates a list of new instances of the BsonDocumentWrapper class.
Public methodDeepClone
Creates a deep clone of the document (see also Clone).
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MaterializedOnDemandBsonDocument.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodEquals(BsonDocument)
Compares this document to another document.
(Inherited from BsonDocument.)
Public methodEquals(BsonValue)
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetElement(Int32)
Gets an element of this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetElement(String)
Gets an element of this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetEnumerator
Gets an enumerator that can be used to enumerate the elements of this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetHashCode
Returns a hash code for this instance.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(Int32)
Gets the value of an element.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetValue(String)
Gets the value of an element.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodGetValue(String, BsonValue)
Gets the value of an element or a default value if the element is not found.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodIndexOfName
Gets the index of an element.
(Inherited from BsonDocument.)
Public methodInsertAt
Inserts a new element at a specified position.
(Inherited from MaterializedOnDemandBsonDocument.)
Protected methodMaterialize
Materializes the BsonDocument.
(Overrides MaterializedOnDemandBsonDocumentMaterialize.)
Protected methodMaterializeCompleted
Informs subclasses that the Materialize process completed so they can free any resources related to the unmaterialized state.
(Overrides MaterializedOnDemandBsonDocumentMaterializeCompleted.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(BsonDocument)
Merges another document into this one. Existing elements are not overwritten.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodMerge(BsonDocument, Boolean)
Merges another document into this one, specifying whether existing elements are overwritten.
(Inherited from MaterializedOnDemandBsonDocument.)
Protected methodOperatorEqualsImplementation
Implementation of operator ==.
(Inherited from BsonValue.)
Public methodRemove
Removes an element from this document (if duplicate element names are allowed then all elements with this name will be removed).
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodRemoveAt
Removes an element from this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodRemoveElement
Removes an element from this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodSet(Int32, BsonValue)
Sets the value of an element.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodSet(String, BsonValue)
Sets the value of an element (an element will be added if no element with this name is found).
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodSetElement(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).
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodSetElement(Int32, BsonElement)
Sets an element of the document (replacing the existing element at that position).
(Inherited from MaterializedOnDemandBsonDocument.)
Protected methodThrowIfDisposed
Throws if disposed.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodToBoolean
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.)
Public methodToDictionary
Converts the BsonDocument to a Dictionary<string, object>.
(Inherited from BsonDocument.)
Public methodToDouble
Converts this BsonValue to a Double.
(Inherited from BsonValue.)
Public methodToHashtable
Converts the BsonDocument to a Hashtable.
(Inherited from BsonDocument.)
Public methodToInt32
Converts this BsonValue to an Int32.
(Inherited from BsonValue.)
Public methodToInt64
Converts this BsonValue to an Int64.
(Inherited from BsonValue.)
Public methodToLocalTime
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.)
Public methodToNullableLocalTime
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.)
Public methodToNullableUniversalTime
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.)
Public methodToString
Returns a string representation of the document.
(Inherited from BsonDocument.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.)
Public methodTryGetElement
Tries to get an element of this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Public methodTryGetValue
Tries to get the value of an element of this document.
(Inherited from MaterializedOnDemandBsonDocument.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also