SqlConnectionStringBuilder.ConnectRetryCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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.
Remarks
This property corresponds to the "Connect Retry Count" key within the SqlConnection connection string.