MessagePropertyFilter.Recoverable Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać Recoverable informacje o właściwości podczas odbierania lub przeglądania komunikatu.

public:
 property bool Recoverable { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgRecoverable")]
public bool Recoverable { get; set; }
[<System.Messaging.MessagingDescription("MsgRecoverable")>]
member this.Recoverable : bool with get, set
Public Property Recoverable As Boolean

Wartość właściwości

true w celu otrzymywania Recoverable informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie Recoverable właściwości .

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's Recoverable property.
queue->MessageReadPropertyFilter->Recoverable = true;

// Peek at the message. Time out after ten seconds 
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));

// Display the value of the message's 
// Recoverable property.
Console::WriteLine("Message.Recoverable: {0}", 
    orderMessage->Recoverable);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's Recoverable property.
queue.MessageReadPropertyFilter.Recoverable = true;

// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));

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

Uwagi

Właściwość RecoverableMessage klasy wskazuje, czy dostarczanie komunikatu jest gwarantowane, nawet jeśli komputer ulegnie awarii, gdy komunikat jest kierowany do kolejki docelowej.

Jeśli dostarczanie komunikatu jest gwarantowane, komunikat jest przechowywany lokalnie na każdym kroku do momentu pomyślnego przekazania komunikatu do następnego komputera. Ustawienie Message.Recoverable wartości na true wartość w komunikacie może mieć wpływ na przepływność.

Dotyczy

Zobacz też