MsmqElementBase.MaxRetryCycles 屬性

定義

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

public:
 property int MaxRetryCycles { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxRetryCycles", DefaultValue=2)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxRetryCycles { get; set; }
[<System.Configuration.ConfigurationProperty("maxRetryCycles", DefaultValue=2)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxRetryCycles : int with get, set
Public Property MaxRetryCycles As Integer

屬性值

整數,指出嘗試傳遞訊息至應用程式的重試循環次數上限。 預設值為 2。

屬性

備註

單一重試循環會嘗試以指定的次數,傳遞訊息至應用程式。 嘗試的次數是由 ReceiveRetryCount 屬性設定。 如果傳遞嘗試次數用完以後,應用程式無法使用訊息,訊息就會傳送至重試佇列。 在 RetryCycleDelay 屬性指定的延遲之後,後續的重試循環會包含從重試佇列傳回應用程式佇列的訊息,以再次嘗試傳遞至應用程式。 MaxRetryCycles 屬性會指定應用程式用於嘗試傳遞訊息的重試循環次數。

適用於