ClusterSettings.With Method (original) (raw)
ClusterSettingsWith Method
Returns a new ClusterSettings instance with some settings changed.
Namespace: MongoDB.Driver.Core.Configuration
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public ClusterSettings With( Optional connectionMode = null, Optional<IEnumerable> endPoints = null, Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = null, Optional maxServerSelectionWaitQueueSize = null, Optional replicaSetName = null, Optional serverSelectionTimeout = null, Optional preServerSelector = null, Optional postServerSelector = null, Optional<IReadOnlyDictionary<string, BsonDocument>> schemaMap = null, Optional scheme = null )
Public Function With ( Optional connectionMode As Optional(Of ClusterConnectionMode) = Nothing, Optional endPoints As Optional(Of IEnumerable(Of EndPoint)) = Nothing, Optional kmsProviders As Optional(Of IReadOnlyDictionary(Of String, IReadOnlyDictionary(Of String, Object))) = Nothing, Optional maxServerSelectionWaitQueueSize As Optional(Of Integer) = Nothing, Optional replicaSetName As Optional(Of String) = Nothing, Optional serverSelectionTimeout As Optional(Of TimeSpan) = Nothing, Optional preServerSelector As Optional(Of IServerSelector) = Nothing, Optional postServerSelector As Optional(Of IServerSelector) = Nothing, Optional schemaMap As Optional(Of IReadOnlyDictionary(Of String, BsonDocument)) = Nothing, Optional scheme As Optional(Of ConnectionStringScheme) = Nothing ) As ClusterSettings
member With : ?connectionMode : Optional * ?endPoints : Optional<IEnumerable> * ?kmsProviders : Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> * ?maxServerSelectionWaitQueueSize : Optional * ?replicaSetName : Optional * ?serverSelectionTimeout : Optional * ?preServerSelector : Optional * ?postServerSelector : Optional * ?schemaMap : Optional<IReadOnlyDictionary<string, BsonDocument>> * ?scheme : Optional (* Defaults: let _connectionMode = defaultArg connectionMode null let _endPoints = defaultArg endPoints null let _kmsProviders = defaultArg kmsProviders null let _maxServerSelectionWaitQueueSize = defaultArg maxServerSelectionWaitQueueSize null let _replicaSetName = defaultArg replicaSetName null let _serverSelectionTimeout = defaultArg serverSelectionTimeout null let _preServerSelector = defaultArg preServerSelector null let _postServerSelector = defaultArg postServerSelector null let _schemaMap = defaultArg schemaMap null let _scheme = defaultArg scheme null *) -> ClusterSettings
Parameters
connectionMode (Optional)
Type: MongoDB.DriverOptionalClusterConnectionMode
The connection mode.
endPoints (Optional)
Type: MongoDB.DriverOptionalIEnumerableEndPoint
The end points.
kmsProviders (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, IReadOnlyDictionaryString, Object
The kms providers.
maxServerSelectionWaitQueueSize (Optional)
Type: MongoDB.DriverOptionalInt32
Maximum size of the server selection wait queue.
replicaSetName (Optional)
Type: MongoDB.DriverOptionalString
Name of the replica set.
serverSelectionTimeout (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The server selection timeout.
preServerSelector (Optional)
Type: MongoDB.DriverOptionalIServerSelector
The pre server selector.
postServerSelector (Optional)
Type: MongoDB.DriverOptionalIServerSelector
The post server selector.
schemaMap (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, BsonDocument
The schema map.
scheme (Optional)
Type: MongoDB.DriverOptionalConnectionStringScheme
The connection string scheme.
Return Value
Type: ClusterSettings
A new ClusterSettings instance.
See Also