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