Method WithReadPreference
WithReadPreference(ReadPreference)
Returns a new IMongoCollection instance with a different read preference setting.
Parameters
readPreference
ReadPreference The read preference.
Returns
- IMongo
Collection <TDocument> A new IMongoCollection instance with a different read preference setting.