Redigera

Dela via


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:
 property int ConnectRetryCount { int get(); void set(int value); };
public int ConnectRetryCount { get; set; }
member this.ConnectRetryCount : int with get, set
Public Property ConnectRetryCount As Integer

Property Value

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

Applies to