Method WithReadPreference
WithReadPreference(ReadPreference)
Returns a new IMongoClient instance with a different read preference setting.
IMongoClient WithReadPreference(ReadPreference readPreference)
Parameters
readPreference
ReadPreferenceThe read preference.
Returns
- IMongoClient
A new IMongoClient instance with a different read preference setting.