AdoDotNetConnectionSupport.ConnectionTimeout 属性

定义

获取或设置在终止尝试并生成超时错误之前等待建立连接的时间长度(以秒为单位)。Gets or sets the amount of time, in seconds, to wait to establish a connection before terminating the attempt and generating a time-out error.

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

属性值

Int32

允许的超时期限的整数表示形式(以秒为单位)。An integer representation of the allowable time-out period, in seconds.

例外

提供程序不支持连接超时。The provider does not support connection time-out.

适用于