CommunicationPipeReceiveTimeOut 属性 |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈
Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback
命名空间:
HslCommunication.Core.Pipe
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public int ReceiveTimeOut { get; set; }
Public Property ReceiveTimeOut As Integer
Get
Set
public:
property int ReceiveTimeOut {
int get ();
void set (int value);
}
member ReceiveTimeOut : int with get, set
属性值
类型:
Int32备注
超时的通常原因是服务器端没有配置好,导致访问失败,为了不卡死软件,所以有了这个超时的属性。
示例
设置1秒的接收超时的示例
client.ReceiveTimeOut = 1000;
OperateResult write = client.Write( "100", 123 );
参见