Table of Contents

Method CreateObjectId

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

CreateObjectId()

Creates a new unique ObjectId using the $createObjectId aggregation operator.

public static ObjectId CreateObjectId()

Returns

ObjectId

A ObjectId.