ReceiveRetryCount Property

MsmqBindingElementBase.ReceiveRetryCount Property


Gets or sets the maximum number of immediate retries that the queue manager should attempt if transmission of a message from the application queue to the application fails.

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

[ConfigurationPropertyAttribute("receiveRetryCount", DefaultValue = 5)]
[IntegerValidatorAttribute(MinValue = 0)]
public int ReceiveRetryCount { get; set; }

Property Value

Type: System.Int32

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

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 a later 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 either sent to the poison-message queue, or a negative acknowledgement is sent back to the sender.

For more information, seeMaxRetryCycles and RetryCycleDelay.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft