SqlConnectionStringBuilder.ConnectRetryInterval 属性

定义

标识空闲连接失败之后每次重新连接尝试之间的时间量(以秒为单位)。Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure. 此值必须是介于 1 和 60 之间的整数。This must be an integer between 1 and 60. 默认值为 10 秒。The default is 10 seconds. 如果设置的值超过允许的范围,则将引发 ArgumentExceptionAn ArgumentException will be thrown if set to a value outside of the allowed range.

public:
 property int ConnectRetryInterval { int get(); void set(int value); };
public int ConnectRetryInterval { get; set; }
member this.ConnectRetryInterval : int with get, set
Public Property ConnectRetryInterval As Integer

属性值

Int32

标识空闲连接失败之后每次重新连接尝试之间的时间量(以秒为单位)。Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure.

适用于