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.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax public ServerSettings With(
Optional<TimeSpan> heartbeatInterval = null,
Optional<TimeSpan> heartbeatTimeout = null
)
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 null
let _heartbeatTimeout = defaultArg heartbeatTimeout null
*)
-> 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