BsonObjectId Methods |
The BsonObjectId type exposes the following members.
Name | Description | |
---|---|---|
![]() | Clone |
Creates a shallow clone of the BsonValue (see also DeepClone).
(Inherited from BsonValue.) |
![]() | CompareTo(BsonObjectId) |
Compares this BsonObjectId to another BsonObjectId.
|
![]() | CompareTo(BsonValue) |
Compares the BsonObjectId to another BsonValue.
(Overrides BsonValueCompareTo(BsonValue).) |
![]() | CompareTypeTo |
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.) |
![]() ![]() | Create |
Creates a new BsonObjectId.
|
![]() | DeepClone |
Creates a deep clone of the BsonValue (see also Clone).
(Inherited from BsonValue.) |
![]() | Equals(Object) |
Compares this BsonObjectId to another object.
(Overrides BsonValueEquals(Object).) |
![]() | Equals(BsonObjectId) |
Compares this BsonObjectId to another BsonObjectId.
|
![]() | Equals(BsonValue) |
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GenerateNewId | Obsolete.
Generates a new BsonObjectId with a unique value.
|
![]() ![]() | GenerateNewId(DateTime) | Obsolete.
Generates a new BsonObjectId with a unique value (with the timestamp component based on a given DateTime).
|
![]() ![]() | GenerateNewId(Int32) | Obsolete.
Generates a new BsonObjectId with a unique value (with the given timestamp).
|
![]() | GetHashCode |
Gets the hash code.
(Overrides BsonValueGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OperatorEqualsImplementation |
Implementation of operator ==.
(Inherited from BsonValue.) |
![]() ![]() | Parse | Obsolete.
Parses a string and creates a new BsonObjectId.
|
![]() | ToBoolean |
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.) |
![]() | ToByteArray | Obsolete.
Converts the BsonObjectId to a byte array.
|
![]() | ToDouble |
Converts this BsonValue to a Double.
(Inherited from BsonValue.) |
![]() | ToInt32 |
Converts this BsonValue to an Int32.
(Inherited from BsonValue.) |
![]() | ToInt64 |
Converts this BsonValue to an Int64.
(Inherited from BsonValue.) |
![]() | ToLocalTime |
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.) |
![]() | ToNullableLocalTime |
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.) |
![]() | ToNullableUniversalTime |
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.) |
![]() | ToString |
Returns a string representation of the value.
(Overrides ObjectToString.) |
![]() | ToUniversalTime |
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.) |
![]() ![]() | TryParse | Obsolete.
Tries to parse a string and create a new BsonObjectId.
|
Name | Description | |
---|---|---|
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |