Click or drag to resize
BsonValue Methods

The BsonValue type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a shallow clone of the BsonValue (see also DeepClone).
Public methodCompareTo
Compares this BsonValue to another BsonValue.
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
Public methodStatic memberCreate
Creates a new instance of the BsonValue class.
Public methodDeepClone
Creates a deep clone of the BsonValue (see also Clone).
Public methodEquals(Object)
Compares this BsonValue to another object.
(Overrides ObjectEquals(Object).)
Public methodEquals(BsonValue)
Compares this BsonValue to another 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 methodGetHashCode
Gets the hash code.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIConvertibleGetTypeCodeImplementation
Implementation of the IConvertible GetTypeCode method.
Protected methodIConvertibleToBooleanImplementation
Implementation of the IConvertible ToBoolean method.
Protected methodIConvertibleToByteImplementation
Implementation of the IConvertible ToByte method.
Protected methodIConvertibleToCharImplementation
Implementation of the IConvertible ToChar method.
Protected methodIConvertibleToDateTimeImplementation
Implementation of the IConvertible ToDateTime method.
Protected methodIConvertibleToDecimalImplementation
Implementation of the IConvertible ToDecimal method.
Protected methodIConvertibleToDoubleImplementation
Implementation of the IConvertible ToDouble method.
Protected methodIConvertibleToInt16Implementation
Implementation of the IConvertible ToInt16 method.
Protected methodIConvertibleToInt32Implementation
Implementation of the IConvertible ToInt32 method.
Protected methodIConvertibleToInt64Implementation
Implementation of the IConvertible ToInt64 method.
Protected methodIConvertibleToSByteImplementation
Implementation of the IConvertible ToSByte method.
Protected methodIConvertibleToSingleImplementation
Implementation of the IConvertible ToSingle method.
Protected methodIConvertibleToStringImplementation
Implementation of the IConvertible ToString method.
Protected methodIConvertibleToUInt16Implementation
Implementation of the IConvertible ToUInt16 method.
Protected methodIConvertibleToUInt32Implementation
Implementation of the IConvertible ToUInt32 method.
Protected methodIConvertibleToUInt64Implementation
Implementation of the IConvertible ToUInt64 method.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOperatorEqualsImplementation
Implementation of operator ==.
Public methodToBoolean
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
Public methodToDouble
Converts this BsonValue to a Double.
Public methodToInt32
Converts this BsonValue to an Int32.
Public methodToInt64
Converts this BsonValue to an Int64.
Public methodToLocalTime
Converts this BsonValue to a DateTime in local time.
Public methodToNullableLocalTime
Converts this BsonValue to a DateTime? in local time.
Public methodToNullableUniversalTime
Converts this BsonValue to a DateTime? in UTC.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
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