SqlConnectionStringBuilder.ConnectRetryCount Property

Definition

The number of reconnections attempted after identifying that there was an idle connection failure. This must be an integer between 0 and 255. Default is 1. Set to 0 to disable reconnecting on idle connection failures. An ArgumentException will be thrown if set to a value outside of the allowed range.

public int ConnectRetryCount { get; set; }
member this.ConnectRetryCount : int with get, set
Public Property ConnectRetryCount As Integer

Property Value

Int32

The number of reconnections attempted after identifying that there was an idle connection failure.

Remarks

This property corresponds to the "Connect Retry Count" key within the SqlConnection connection string.

Applies to