Method SetReadPreference
SetReadPreference(ReadPreference)
Sets the read preference.
public virtual MongoCursor SetReadPreference(ReadPreference readPreference)
Parameters
readPreference
ReadPreferenceThe read preference.
Returns
- MongoCursor
The cursor (so you can chain method calls to it).