Struct ObjectId
Represents an ObjectId (see also BsonObjectId).
- Implements
- Inherited Members
- Extension Methods
Constructors
- Object
Id(byte[]) Initializes a new instance of the ObjectId class.
- Object
Id(string) Initializes a new instance of the ObjectId class.
Properties
- Creation
Time Gets the creation time (derived from the timestamp).
- Empty
Gets an instance of ObjectId where the value is empty.
- Timestamp
Gets the timestamp.
Methods
- Compare
To(Object Id) Compares this ObjectId to another ObjectId.
- Equals(Object
Id) Compares this ObjectId to another ObjectId.
- Equals(object)
Compares this ObjectId to another object.
- Generate
New Id() Generates a new ObjectId with a unique value.
- Generate
New Id(Date Time) Generates a new ObjectId with a unique value (with the timestamp component based on a given DateTime).
- Generate
New Id(int) Generates a new ObjectId with a unique value (with the given timestamp).
- Get
Hash Code() Gets the hash code.
- Parse(string)
Parses a string and creates a new ObjectId.
- To
Byte Array() Converts the ObjectId to a byte array.
- To
Byte Array(byte[], int) Converts the ObjectId to a byte array.
- To
String() Returns a string representation of the value.
- Try
Parse(string, out Object Id) Tries to parse a string and create a new ObjectId.
Operators
- operator ==(Object
Id, Object Id) Compares two ObjectIds.
- operator >(ObjectId, ObjectId)
Compares two ObjectIds.
- operator >=(ObjectId, ObjectId)
Compares two ObjectIds.
- operator !=(Object
Id, Object Id) Compares two ObjectIds.
- operator <(ObjectId, ObjectId)
Compares two ObjectIds.
- operator <=(ObjectId, ObjectId)
Compares two ObjectIds.