Click or drag to resize
ObjectId.Pack Method
Packs the components of an ObjectId into a byte array.

Namespace: MongoDB.Bson
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.4.1
Syntax
public static byte[] Pack(
	int timestamp,
	int machine,
	short pid,
	int increment
)

Parameters

timestamp
Type: System.Int32
The timestamp.
machine
Type: System.Int32
The machine hash.
pid
Type: System.Int16
The PID.
increment
Type: System.Int32
The increment.

Return Value

Type:Byte[]
A byte array.
See Also