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