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