Click or drag to resize

BsonBoolean Methods

The BsonBoolean type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a shallow clone of the BsonValue (see also DeepClone).
(Inherited from BsonValue.)
Public methodCompareTo(BsonBoolean)
Compares this BsonBoolean to another BsonBoolean.
Public methodCompareTo(BsonValue)
Compares the BsonBoolean to another BsonValue.
(Overrides BsonValueCompareTo(BsonValue).)
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.)
Public methodStatic memberCreate
Returns one of the two possible BsonBoolean values.
Public methodDeepClone
Creates a deep clone of the BsonValue (see also Clone).
(Inherited from BsonValue.)
Public methodEquals(Object)
Compares this BsonBoolean to another object.
(Overrides BsonValueEquals(Object).)
Public methodEquals(BsonBoolean)
Compares this BsonBoolean to another BsonBoolean.
Public methodEquals(BsonValue)
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode
Gets the hash code.
(Overrides BsonValueGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodIConvertibleGetTypeCodeImplementation
Implementation of the IConvertible GetTypeCode method.
(Overrides BsonValueIConvertibleGetTypeCodeImplementation.)
Protected methodIConvertibleToBooleanImplementation
Implementation of the IConvertible ToBoolean method.
(Overrides BsonValueIConvertibleToBooleanImplementation(IFormatProvider).)
Protected methodIConvertibleToByteImplementation
Implementation of the IConvertible ToByte method.
(Overrides BsonValueIConvertibleToByteImplementation(IFormatProvider).)
Protected methodIConvertibleToCharImplementation
Implementation of the IConvertible ToChar method.
(Inherited from BsonValue.)
Protected methodIConvertibleToDateTimeImplementation
Implementation of the IConvertible ToDateTime method.
(Inherited from BsonValue.)
Protected methodIConvertibleToDecimalImplementation
Implementation of the IConvertible ToDecimal method.
(Overrides BsonValueIConvertibleToDecimalImplementation(IFormatProvider).)
Protected methodIConvertibleToDoubleImplementation
Implementation of the IConvertible ToDouble method.
(Overrides BsonValueIConvertibleToDoubleImplementation(IFormatProvider).)
Protected methodIConvertibleToInt16Implementation
Implementation of the IConvertible ToInt16 method.
(Overrides BsonValueIConvertibleToInt16Implementation(IFormatProvider).)
Protected methodIConvertibleToInt32Implementation
Implementation of the IConvertible ToInt32 method.
(Overrides BsonValueIConvertibleToInt32Implementation(IFormatProvider).)
Protected methodIConvertibleToInt64Implementation
Implementation of the IConvertible ToInt64 method.
(Overrides BsonValueIConvertibleToInt64Implementation(IFormatProvider).)
Protected methodIConvertibleToSByteImplementation
Implementation of the IConvertible ToSByte method.
(Overrides BsonValueIConvertibleToSByteImplementation(IFormatProvider).)
Protected methodIConvertibleToSingleImplementation
Implementation of the IConvertible ToSingle method.
(Overrides BsonValueIConvertibleToSingleImplementation(IFormatProvider).)
Protected methodIConvertibleToStringImplementation
Implementation of the IConvertible ToString method.
(Overrides BsonValueIConvertibleToStringImplementation(IFormatProvider).)
Protected methodIConvertibleToUInt16Implementation
Implementation of the IConvertible ToUInt16 method.
(Overrides BsonValueIConvertibleToUInt16Implementation(IFormatProvider).)
Protected methodIConvertibleToUInt32Implementation
Implementation of the IConvertible ToUInt32 method.
(Overrides BsonValueIConvertibleToUInt32Implementation(IFormatProvider).)
Protected methodIConvertibleToUInt64Implementation
Implementation of the IConvertible ToUInt64 method.
(Overrides BsonValueIConvertibleToUInt64Implementation(IFormatProvider).)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOperatorEqualsImplementation
Implementation of operator ==.
(Inherited from BsonValue.)
Public methodToBoolean
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Overrides BsonValueToBoolean.)
Public methodToDecimal
Converts this BsonValue to a Decimal.
(Inherited from BsonValue.)
Public methodToDecimal128
Converts this BsonValue to a Decimal128.
(Inherited from BsonValue.)
Public methodToDouble
Converts this BsonValue to a Double.
(Inherited from BsonValue.)
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 value.
(Overrides ObjectToString.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.)
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