편집

다음을 통해 공유


DatabaseOptions.IdleTcpConnectionTimeout Property

Definition

Gets or sets the timeout before an unused connection is closed.

public:
 property Nullable<TimeSpan> IdleTcpConnectionTimeout { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? IdleTcpConnectionTimeout { get; set; }
member this.IdleTcpConnectionTimeout : Nullable<TimeSpan> with get, set
Public Property IdleTcpConnectionTimeout As Nullable(Of TimeSpan)

Property Value

The default is null.

Remarks

By default, idle connections should be kept open indefinitely. The value must be greater than or equal to 10 minutes. Recommended values are between 20 minutes and 24 hours. This value is mainly useful for sparse infrequent access to a large database account. It works for all global and regional connections.

Applies to