Constructor ObjectId
ObjectId(byte[])
Initializes a new instance of the ObjectId class.
public ObjectId(byte[] bytes)Parameters
- bytesbyte[]
- 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
- timestampDateTime
- The timestamp (expressed as a DateTime). 
- machineint
- The machine hash. 
- pidshort
- The PID. 
- incrementint
- The 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
- timestampint
- The timestamp. 
- machineint
- The machine hash. 
- pidshort
- The PID. 
- incrementint
- The increment. 
ObjectId(string)
Initializes a new instance of the ObjectId class.
public ObjectId(string value)Parameters
- valuestring
- The value.