Table of Contents

Method ReadObjectId

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

ReadObjectId(IBsonReader, string)

Reads a BSON ObjectId element from the reader.

public static ObjectId ReadObjectId(this IBsonReader reader, string name)

Parameters

reader IBsonReader

The reader.

name string

The name of the element.

Returns

ObjectId

An ObjectId.