แก้ไข

แชร์ผ่าน


MsmqElementBase.MaxRetryCycles Property

Definition

Gets or sets the maximum number of retry cycles to attempt delivery of messages to the receiving application.

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

Property Value

An integer that indicates the maximum number of retry cycles to attempt delivery of messages to the application. The default value is 2.

Attributes

Remarks

A single retry cycle attempts to deliver a message to an application a specified number of times. The number of attempts made is set by the ReceiveRetryCount property. If the application fails to consume the message after the attempts at delivery have been exhausted, the message is sent to a retry queue. Subsequent retry cycles consist of the message being returned from the retry queue to the application queue to attempt delivery to the application again, after a delay specified by the RetryCycleDelay property. The MaxRetryCycles property specifies the number of retry cycles that the application uses to attempt to deliver the message.

Applies to