Table of Contents

Method Create

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Create(object)

Creates a new BsonObjectId.

public static BsonObjectId Create(object value)

Parameters

value object

An object to be mapped to a BsonObjectId.

Returns

BsonObjectId

A BsonObjectId or null.