点击或拖拽改变大小

TcpForwardConnectTimeOut 属性

获取或设置连接的超时时间,单位是毫秒
Gets or sets the timeout for the connection, in milliseconds

命名空间:  HslCommunication.Enthernet
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public virtual int ConnectTimeOut { get; set; }

属性值

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