| ReadPreference Constructor  | 
  
    Namespace: 
   MongoDB.Driver
    Assembly:
   MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
 Syntax
Syntaxpublic ReadPreference(
	ReadPreferenceMode mode,
	IEnumerable<TagSet> tagSets = null,
	Nullable<TimeSpan> maxStaleness = null
)
Public Sub New ( 
	mode As ReadPreferenceMode,
	Optional tagSets As IEnumerable(Of TagSet) = Nothing,
	Optional maxStaleness As Nullable(Of TimeSpan) = Nothing
)
new : 
        mode : ReadPreferenceMode * 
        ?tagSets : IEnumerable<TagSet> * 
        ?maxStaleness : Nullable<TimeSpan> 
(* Defaults:
        let _tagSets = defaultArg tagSets null
        let _maxStaleness = defaultArg maxStaleness null
*)
-> ReadPreferenceParameters
- mode
- Type: MongoDB.DriverReadPreferenceMode
 The read preference mode.
- tagSets (Optional)
- Type: System.Collections.GenericIEnumerableTagSet
 The tag sets.
- maxStaleness (Optional)
- Type: SystemNullableTimeSpan
 The maximum staleness.
 See Also
See Also