ReadPreference Constructor |
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.2.0
Syntax public ReadPreference(
ReadPreferenceMode mode,
IEnumerable<TagSet> tagSets = null
)
Public Sub New (
mode As ReadPreferenceMode,
Optional tagSets As IEnumerable(Of TagSet) = Nothing
)
new :
mode : ReadPreferenceMode *
?tagSets : IEnumerable<TagSet>
(* Defaults:
let _tagSets = defaultArg tagSets null
*)
-> ReadPreference
Parameters
- mode
- Type: MongoDB.DriverReadPreferenceMode
The read preference mode. - tagSets (Optional)
- Type: System.Collections.GenericIEnumerableTagSet
The tag sets.
See Also