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.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public ServerSettings With(
	Optional<TimeSpan> heartbeatInterval = null,
	Optional<TimeSpan> heartbeatTimeout = null
)

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