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.

適用於