Click or drag to resize

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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public ServerSettings With(
	Optional<TimeSpan> heartbeatInterval = default,
	Optional<TimeSpan> heartbeatTimeout = default
)

Parameters

heartbeatInterval (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The heartbeat interval.
heartbeatTimeout (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The heartbeat timeout.

Return Value

Type: ServerSettings
A new ServerSettings instance.
See Also