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