Binding.OpenTimeout 属性

定义

获取或设置在传输引发异常之前可用于打开连接的时间间隔。Gets or sets the interval of time provided for a connection to open before the transport raises an exception.

public:
 property TimeSpan OpenTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan OpenTimeout { get; set; }
member this.OpenTimeout : TimeSpan with get, set
Public Property OpenTimeout As TimeSpan

属性值

指定在超时前必须完成打开操作的时间的 TimeSpan。默认值为1分钟。The TimeSpan that specifies how long the open operation has to complete before timing out. The default value is 1 minute.

例外

值小于零或太大。The value is less than zero or too large.

注解

此属性的值由绑定的工厂所生成的通道和侦听器使用。The value of this property is used by the channels and listeners produced by the factories of the binding.

适用于