ConnectRetryCount Property

SqlConnectionStringBuilder.ConnectRetryCount Property

.NET Framework (current version)
 

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

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.

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

public int ConnectRetryCount { get; set; }

Property Value

Type: System.Int32

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

.NET Framework
Available since 4.5.1
Return to top
Show:
© 2016 Microsoft