Class BsonObjectId
Represents a BSON ObjectId value (see also ObjectId).
public class BsonObjectId : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonObjectId>, IEquatable<BsonObjectId>
- Inheritance
-
Bson
Object Id
- Implements
- Inherited Members
- Extension Methods
Constructors
- Bson
Object Id(Object Id) Initializes a new instance of the BsonObjectId class.
Properties
- Bson
Type Gets the BsonType of this BsonValue.
- Empty
Gets an instance of BsonObjectId where the value is empty.
- Value
Gets the value of this BsonObjectId.
Methods
- Compare
To(Bson Object Id) Compares this BsonObjectId to another BsonObjectId.
- Compare
To(Bson Value) Compares the BsonObjectId to another BsonValue.
- Create(object)
Creates a new BsonObjectId.
- Equals(Bson
Object Id) Compares this BsonObjectId to another BsonObjectId.
- Equals(object)
Compares this BsonObjectId to another object.
- Get
Hash Code() Gets the hash code.
- IConvertible
ToString Implementation(IFormat Provider) Implementation of the IConvertible ToString method.
- To
String() Returns a string representation of the value.
Operators
- operator ==(Bson
Object Id, Bson Object Id) Compares two BsonObjectId values.
- implicit operator Bson
Object Id(Object Id) Converts an ObjectId to a BsonObjectId.
- operator !=(Bson
Object Id, Bson Object Id) Compares two BsonObjectId values.