点击或拖拽改变大小

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; }

属性值

类型:Int32
备注
不适用于异形模式的连接。
示例
设置1秒的超时的示例
ConnectTimeOut示例
// 设置连接的超时时间,单位 毫秒
client.ConnectTimeOut = 1000;
// 1秒没有连接上的时候就自动返回失败
client.ConnectServer( );
参见