Editare

Partajați prin


MsmqBindingElementBase.ReceiveRetryCount Property

Definition

Gets or sets the maximum number of times the queue manager should attempt to send a message before transferring it to the retry queue.

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

Property Value

A value that specifies the maximum number of times the queue manager should attempt to send a message before transferring it to the retry queue.

Exceptions

The value is less than zero.

Remarks

If the maximum number of delivery attempts is reached and the message is not accessed by the application, then the message is sent to a retry queue for redelivery at some later point in time. The amount of time before the message is transferred back to the sending queue is controlled by RetryCycleDelay. If retry cycles reach the MaxRetryCycles value, then the message is dispatched based on the value of the ReceiveErrorHandling property.

For more information, see MaxRetryCycles and RetryCycleDelay.

Applies to