MsmqBindingElementBase.MaxRetryCycles 屬性

定義

取得或設定嘗試傳遞訊息至接收應用程式的重試循環次數上限。

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

屬性值

指定在傳送訊息至有害訊息佇列之前要嘗試之重試循環次數的值。

例外狀況

這個值小於零。

備註

「重試循環」(Retry Cycle) 是指訊息從重試佇列傳送至應用程式佇列以嘗試傳遞至應用程式的時間。 在立即重試達到 ReceiveRetryCount 的指定次數後,就會將訊息置於重試佇列。 MaxRetryCycles 會指定重試循環次數,且不會包含最初的傳送訊息嘗試。 嘗試傳遞訊息的次數上限為 (1 + MaxRetryCycles) * (ReceiveRetryCount + 1) 次。 例如,如果 ReceiveRetryCount = 0 且 MaxRetryCycles 為 1,則嘗試傳遞訊息的次數上限為 2。 此屬性僅適用于從 Windows Vista 開始的作業系統。

適用於