Click or drag to resize
BsonDateTime Methods

The BsonDateTime type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a shallow clone of the BsonValue (see also DeepClone).
(Inherited from BsonValue.)
Public methodCompareTo(BsonDateTime)
Compares this BsonDateTime to another BsonDateTime.
Public methodCompareTo(BsonValue)
Compares the BsonDateTime 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
Creates a new BsonDateTime.
Public methodDeepClone
Creates a deep clone of the BsonValue (see also Clone).
(Inherited from BsonValue.)
Public methodEquals(Object)
Compares this BsonDateTime to another object.
(Overrides BsonValueEquals(Object).)
Public methodEquals(BsonDateTime)
Compares this BsonDateTime to another BsonDateTime.
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 BsonValueGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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).
(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.
(Overrides BsonValueToLocalTime.)
Public methodToNullableLocalTime
Converts this BsonValue to a DateTime? in local time.
(Overrides BsonValueToNullableLocalTime.)
Public methodToNullableUniversalTime
Converts this BsonValue to a DateTime? in UTC.
(Overrides BsonValueToNullableUniversalTime.)
Public methodToString
Returns a string representation of the value.
(Overrides ObjectToString.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
(Overrides BsonValueToUniversalTime.)
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