Table of Contents

Method WriteObjectId

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

WriteObjectId(IBsonWriter, string, ObjectId)

Writes a BSON ObjectId element to the writer.

public static void WriteObjectId(this IBsonWriter writer, string name, ObjectId objectId)

Parameters

writer IBsonWriter

The writer.

name string

The name of the element.

objectId ObjectId

The ObjectId.