ServerSettingsWith Method  | 
 
            Returns a new ServerSettings instance with some settings changed.
            
 
    Namespace: 
   MongoDB.Driver.Core.Configuration
    Assembly:
   MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic ServerSettings With(
	Optional<TimeSpan> heartbeatInterval = default,
	Optional<TimeSpan> heartbeatTimeout = default
)
Public Function With ( 
	Optional heartbeatInterval As Optional(Of TimeSpan) = Nothing,
	Optional heartbeatTimeout As Optional(Of TimeSpan) = Nothing
) As ServerSettings
member With : 
        ?heartbeatInterval : Optional<TimeSpan> * 
        ?heartbeatTimeout : Optional<TimeSpan> 
(* Defaults:
        let _heartbeatInterval = defaultArg heartbeatInterval new Optional<TimeSpan>()
        let _heartbeatTimeout = defaultArg heartbeatTimeout new Optional<TimeSpan>()
*)
-> ServerSettings 
Parameters
- heartbeatInterval (Optional)
 - Type: MongoDB.DriverOptionalTimeSpan
The heartbeat interval. - heartbeatTimeout (Optional)
 - Type: MongoDB.DriverOptionalTimeSpan
The heartbeat timeout. 
Return Value
Type: 
ServerSettingsA new ServerSettings instance.
See Also