ConnectionOrientedTransportBindingElement.MaxOutputDelay 屬性

定義

取得或設定訊息區塊或完整訊息在送出之前,可以在記憶體中保持緩衝的最大時間間隔。

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

屬性值

TimeSpan

TimeSpan 指定訊息區塊或完整訊息在送出之前,可以在記憶體中保持緩衝處理的最大時間間隔。預設值為 2 秒。 只有在傳出訊息的 AllowOutputBatching 屬性設定為 true 時,這個屬性才有意義。 否則,就會忽略這個值並且立即傳送訊息。

例外狀況

這個值小於零。

備註

如果 AllowOutputBatchingfalse,則會忽略該訊息的這個屬性。

適用於