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