NetworkDoubleBaseConnectTimeOut 属性 |
获取或设置连接的超时时间,单位是毫秒
Gets or sets the timeout for the connection, in milliseconds
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual int ConnectTimeOut { get; set; }
Public Overridable Property ConnectTimeOut As Integer
Get
Set
public:
virtual property int ConnectTimeOut {
int get ();
void set (int value);
}
abstract ConnectTimeOut : int with get, set
override ConnectTimeOut : int with get, set
属性值
类型:
Int32备注
不适用于异形模式的连接。
示例
设置1秒的超时的示例
client.ConnectTimeOut = 1000;
client.ConnectServer( );
参见