Constructor ObjectId
ObjectId(byte[])
Initializes a new instance of the ObjectId class.
public ObjectId(byte[] bytes)
Parameters
bytes
byte[]The bytes.
ObjectId(DateTime, int, short, int)
Initializes a new instance of the ObjectId class.
[Obsolete("This constructor will be removed in a later release.")]
public ObjectId(DateTime timestamp, int machine, short pid, int increment)
Parameters
timestamp
DateTimeThe timestamp (expressed as a DateTime).
machine
intThe machine hash.
pid
shortThe PID.
increment
intThe increment.
ObjectId(int, int, short, int)
Initializes a new instance of the ObjectId class.
[Obsolete("This constructor will be removed in a later release.")]
public ObjectId(int timestamp, int machine, short pid, int increment)
Parameters
timestamp
intThe timestamp.
machine
intThe machine hash.
pid
shortThe PID.
increment
intThe increment.
ObjectId(string)
Initializes a new instance of the ObjectId class.
public ObjectId(string value)
Parameters
value
stringThe value.