Constructor ReadPreferenceServerSelector
- Namespace
- MongoDB.Driver.Core.Clusters.ServerSelectors
- Assembly
- MongoDB.Driver.dll
ReadPreferenceServerSelector(ReadPreference)
Initializes a new instance of the ReadPreferenceServerSelector class.
public ReadPreferenceServerSelector(ReadPreference readPreference)
Parameters
readPreference
ReadPreferenceThe read preference.