Export (0) Print
Expand All

SqlConnectionStringBuilder.ConnectRetryInterval Property

[Supported in the .NET Framework 4.5.1 and later versions]

Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure. This must be an integer between 1 and 60. The default is 10 seconds. An ArgumentException will be thrown if set to a value outside of the allowed range.

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public int ConnectRetryInterval { get; set; }

Property Value

Type: System.Int32
Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure.

.NET Framework

Supported in: 4.5.2, 4.5.1
Show:
© 2014 Microsoft