ServerSettings.With Method (original) (raw)

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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public ServerSettings With( Optional heartbeatInterval = null, Optional 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 * ?heartbeatTimeout : Optional (* 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: ServerSettings
A new ServerSettings instance.

See Also

Reference