ConnectionPoolSettingsWith Method  | 
 
            Returns a new ConnectionPoolSettings instance with some settings changed.
            
 
    Namespace: 
   MongoDB.Driver.Core.Configuration
    Assembly:
   MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntaxpublic ConnectionPoolSettings With(
	Optional<TimeSpan> maintenanceInterval = default,
	Optional<int> maxConnections = default,
	Optional<int> minConnections = default,
	Optional<int> waitQueueSize = default,
	Optional<TimeSpan> waitQueueTimeout = default,
	Optional<int> maxConnecting = default
)
Public Function With ( 
	Optional maintenanceInterval As Optional(Of TimeSpan) = Nothing,
	Optional maxConnections As Optional(Of Integer) = Nothing,
	Optional minConnections As Optional(Of Integer) = Nothing,
	Optional waitQueueSize As Optional(Of Integer) = Nothing,
	Optional waitQueueTimeout As Optional(Of TimeSpan) = Nothing,
	Optional maxConnecting As Optional(Of Integer) = Nothing
) As ConnectionPoolSettings
member With : 
        ?maintenanceInterval : Optional<TimeSpan> * 
        ?maxConnections : Optional<int> * 
        ?minConnections : Optional<int> * 
        ?waitQueueSize : Optional<int> * 
        ?waitQueueTimeout : Optional<TimeSpan> * 
        ?maxConnecting : Optional<int> 
(* Defaults:
        let _maintenanceInterval = defaultArg maintenanceInterval new Optional<TimeSpan>()
        let _maxConnections = defaultArg maxConnections new Optional<int>()
        let _minConnections = defaultArg minConnections new Optional<int>()
        let _waitQueueSize = defaultArg waitQueueSize new Optional<int>()
        let _waitQueueTimeout = defaultArg waitQueueTimeout new Optional<TimeSpan>()
        let _maxConnecting = defaultArg maxConnecting new Optional<int>()
*)
-> ConnectionPoolSettings 
Parameters
- maintenanceInterval (Optional)
 - Type: MongoDB.DriverOptionalTimeSpan
The maintenance interval. - maxConnections (Optional)
 - Type: MongoDB.DriverOptionalInt32
The maximum connections. - minConnections (Optional)
 - Type: MongoDB.DriverOptionalInt32
The minimum connections. - waitQueueSize (Optional)
 - Type: MongoDB.DriverOptionalInt32
Size of the wait queue. - waitQueueTimeout (Optional)
 - Type: MongoDB.DriverOptionalTimeSpan
The wait queue timeout. - maxConnecting (Optional)
 - Type: MongoDB.DriverOptionalInt32
The maximum concurrently connecting connections. 
Return Value
Type: 
ConnectionPoolSettingsA new ConnectionPoolSettings instance.
See Also