Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Message.Recoverable Property

Gets or sets a value that indicates whether the message is guaranteed to be delivered in the event of a computer failure or network problem.

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)
[MessagingDescriptionAttribute("MsgRecoverable")]
public bool Recoverable { get; set; }

Property Value

Type: System.Boolean
true if delivery of the message is guaranteed (through saving the message to disk while en route); false if delivery is not assured. The default is false.
ExceptionCondition
InvalidOperationException

The message queue is filtered to ignore the Recoverable property.

The Recoverable property indicates whether the delivery of a message is guaranteed—even if a computer crashes while the message is en route to the destination queue.

If delivery of a message is guaranteed, the message is stored locally at every step along the route, until the message is successfully forwarded to the next computer. Setting the Recoverable property to true could affect throughput.

If the message is transactional, Message Queuing automatically treats the message as recoverable, regardless of the value of the Recoverable property.

The following code example gets and sets the value of a message's Recoverable property.

// Set the message's Recoverable property.
orderMessage.Recoverable = true;

// Display the new value of the message's Recoverable property.
Console.WriteLine("Message.Recoverable: {0}",
    orderMessage.Recoverable);

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.