Binding.SendTimeout Binding.SendTimeout Binding.SendTimeout Binding.SendTimeout Property

定义

获取或设置在传输引发异常之前可用于完成写入操作的时间间隔。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,指定在超时前必须完成写入操作的时间。默认值为 1 分钟。The TimeSpan that specifies how long the write operation has to complete before timing out. The default value is 1 minute.

异常

注解

如果对绑定或通道启用了事务流,执行操作所需的时间可能会比指定的超时时间长。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.

适用于