Method ReadObjectId NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll ReadObjectId() Reads a BSON ObjectId from the stream. public override ObjectId ReadObjectId() Returns ObjectId An ObjectId.