System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : Recoverable Property
Recoverable Property (Message)
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.
Syntax
'Declaration
 
<MessagingDescriptionAttribute("The message will be delivered, even if a computer crashes while the message is en-route to the queue.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<ReadOnlyAttribute(True)>
Public Property Recoverable As Boolean
'Usage
 
Dim instance As Message
Dim value As Boolean
 
instance.Recoverable = value
 
value = instance.Recoverable
[MessagingDescription("The message will be delivered, even if a computer crashes while the message is en-route to the queue.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
public bool Recoverable {get; set;}
[MessagingDescription("The message will be delivered, even if a computer crashes while the message is en-route to the queue.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
public:
property bool Recoverable {
   bool get();
   void set (    bool value);
}

Property Value

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.
Exceptions
ExceptionDescription
The message queue is filtered to ignore the Recoverable property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also