Table of Contents

Constructor ObjectId

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

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 DateTime

The timestamp (expressed as a DateTime).

machine int

The machine hash.

pid short

The PID.

increment int

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

timestamp int

The timestamp.

machine int

The machine hash.

pid short

The PID.

increment int

The increment.

ObjectId(string)

Initializes a new instance of the ObjectId class.

public ObjectId(string value)

Parameters

value string

The value.