Method ReadObjectId
ReadObjectId(IBsonReader, string)
Reads a BSON ObjectId element from the reader.
public static ObjectId ReadObjectId(this IBsonReader reader, string name)
Parameters
reader
IBsonReaderThe reader.
name
stringThe name of the element.
Returns
- ObjectId
An ObjectId.