Export (0) Print
Expand All

SqlConnectionStringBuilder.ConnectRetryCount Property

.NET Framework 4.5

[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

Supported in: 4.5.2, 4.5.1
Show:
© 2014 Microsoft