Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property int ConnectRetryCount {
	int get();
	void set(int value);
}

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:
© 2017 Microsoft