Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsmqBindingElementBase::ReceiveRetryCount Property

 

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property int ReceiveRetryCount {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

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.

Exception Condition
ArgumentOutOfRangeException

The value is less than zero.

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, seeMaxRetryCycles and RetryCycleDelay.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft