Binding.SendTimeout 属性

定义

获取或设置在传输引发异常之前可用于完成写入操作的时间间隔。Gets or sets the interval of time provided for a write operation to complete before the transport raises an exception.

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

属性值

TimeSpan

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

例外

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

注解

如果对绑定或通道启用了事务流,执行操作所需的时间可能会比指定的超时时间长。If transaction flow is enabled on the binding or the channel, the operation may take longer to execute than the specified timeout. 在这些情况下,将会因为超时过期而导致操作失败,事务也将随之中止。In these circumstances the operation fails due to the expired timeout and the transaction aborts appropriately.

适用于