Method WithReadPreference
WithReadPreference(ReadPreference)
Returns a new IMongoDatabase instance with a different read preference setting.
Parameters
readPreference
ReadPreference The read preference.
Returns
- IMongo
Database A new IMongoDatabase instance with a different read preference setting.