Method FromBsonDocument
FromBsonDocument(BsonDocument)
Creates a new ReadPreference instance from a BsonDocument.
public static ReadPreference FromBsonDocument(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Returns
- ReadPreference
A ReadPreference.