Click or drag to resize

BsonString Methods

The BsonString type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a shallow clone of the BsonValue (see also DeepClone).
(Inherited from BsonValue.)
Public methodCompareTo(BsonString)
Compares this BsonString to another BsonString.
Public methodCompareTo(BsonValue)
Compares the BsonString to another BsonValue.
(Overrides BsonValue.CompareTo(BsonValue).)
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.)
Public methodStatic memberCreate
Creates a new BsonString.
Public methodDeepClone
Creates a deep clone of the BsonValue (see also Clone).
(Inherited from BsonValue.)
Public methodEquals(Object)
Compares this BsonString to another object.
(Overrides BsonValue.Equals(Object).)
Public methodEquals(BsonString)
Compares this BsonString to another BsonString.
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 methodGetHashCode
Gets the hash code.
(Overrides BsonValue.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIConvertibleGetTypeCodeImplementation
Implementation of the IConvertible GetTypeCode method.
(Overrides BsonValue.IConvertibleGetTypeCodeImplementation().)
Protected methodIConvertibleToBooleanImplementation
Implementation of the IConvertible ToBoolean method.
(Overrides BsonValue.IConvertibleToBooleanImplementation(IFormatProvider).)
Protected methodIConvertibleToByteImplementation
Implementation of the IConvertible ToByte method.
(Overrides BsonValue.IConvertibleToByteImplementation(IFormatProvider).)
Protected methodIConvertibleToCharImplementation
Implementation of the IConvertible ToChar method.
(Overrides BsonValue.IConvertibleToCharImplementation(IFormatProvider).)
Protected methodIConvertibleToDateTimeImplementation
Implementation of the IConvertible ToDateTime method.
(Overrides BsonValue.IConvertibleToDateTimeImplementation(IFormatProvider).)
Protected methodIConvertibleToDecimalImplementation
Implementation of the IConvertible ToDecimal method.
(Overrides BsonValue.IConvertibleToDecimalImplementation(IFormatProvider).)
Protected methodIConvertibleToDoubleImplementation
Implementation of the IConvertible ToDouble method.
(Overrides BsonValue.IConvertibleToDoubleImplementation(IFormatProvider).)
Protected methodIConvertibleToInt16Implementation
Implementation of the IConvertible ToInt16 method.
(Overrides BsonValue.IConvertibleToInt16Implementation(IFormatProvider).)
Protected methodIConvertibleToInt32Implementation
Implementation of the IConvertible ToInt32 method.
(Overrides BsonValue.IConvertibleToInt32Implementation(IFormatProvider).)
Protected methodIConvertibleToInt64Implementation
Implementation of the IConvertible ToInt64 method.
(Overrides BsonValue.IConvertibleToInt64Implementation(IFormatProvider).)
Protected methodIConvertibleToSByteImplementation
Implementation of the IConvertible ToSByte method.
(Overrides BsonValue.IConvertibleToSByteImplementation(IFormatProvider).)
Protected methodIConvertibleToSingleImplementation
Implementation of the IConvertible ToSingle method.
(Overrides BsonValue.IConvertibleToSingleImplementation(IFormatProvider).)
Protected methodIConvertibleToStringImplementation
Implementation of the IConvertible ToString method.
(Overrides BsonValue.IConvertibleToStringImplementation(IFormatProvider).)
Protected methodIConvertibleToUInt16Implementation
Implementation of the IConvertible ToUInt16 method.
(Overrides BsonValue.IConvertibleToUInt16Implementation(IFormatProvider).)
Protected methodIConvertibleToUInt32Implementation
Implementation of the IConvertible ToUInt32 method.
(Overrides BsonValue.IConvertibleToUInt32Implementation(IFormatProvider).)
Protected methodIConvertibleToUInt64Implementation
Implementation of the IConvertible ToUInt64 method.
(Overrides BsonValue.IConvertibleToUInt64Implementation(IFormatProvider).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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 BsonValue.ToBoolean().)
Public methodToDecimal
Converts this BsonValue to a Decimal.
(Overrides BsonValue.ToDecimal().)
Public methodToDecimal128
Converts this BsonValue to a Decimal128.
(Overrides BsonValue.ToDecimal128().)
Public methodToDouble
Converts this BsonValue to a Double.
(Overrides BsonValue.ToDouble().)
Public methodToInt32
Converts this BsonValue to an Int32.
(Overrides BsonValue.ToInt32().)
Public methodToInt64
Converts this BsonValue to an Int64.
(Overrides BsonValue.ToInt64().)
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 Object.ToString().)
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