Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MsmqElementBase.MaxRetryCycles Property

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

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

[ConfigurationPropertyAttribute("maxRetryCycles", DefaultValue = )]
[IntegerValidatorAttribute(MinValue = )]
public int MaxRetryCycles { get; set; }

Property Value

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

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 the application uses to attempt to deliver the message.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft