Table of Contents

Class ObjectIdGenerator

Namespace
MongoDB.Bson.Serialization.IdGenerators
Assembly
MongoDB.Bson.dll

Represents an Id generator for ObjectIds.

public class ObjectIdGenerator : IIdGenerator
Inheritance
ObjectIdGenerator
Implements
Inherited Members
Extension Methods

Constructors

ObjectIdGenerator()

Initializes a new instance of the ObjectIdGenerator class.

Properties

Instance

Gets an instance of ObjectIdGenerator.

Methods

GenerateId(object, object)

Generates an Id for a document.

IsEmpty(object)

Tests whether an Id is empty.