Click or drag to resize
ReadPreference Constructor
Initializes a new instance of the ReadPreference class.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.1.0
Syntax
public ReadPreference(
	ReadPreferenceMode mode,
	IEnumerable<TagSet> tagSets = null
)

Parameters

mode
Type: MongoDB.DriverReadPreferenceMode
The read preference mode.
tagSets (Optional)
Type: System.Collections.GenericIEnumerableTagSet
The tag sets.
See Also