Method WriteObjectId
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
IBsonWriterThe writer.
name
stringThe name of the element.
objectId
ObjectIdThe ObjectId.