MessagePropertyFilter.DestinationQueue Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of eigenschapsgegevens moeten worden opgehaald DestinationQueue bij het ontvangen of bekijken van een bericht.
public:
property bool DestinationQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgDestinationQueue")]
public bool DestinationQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgDestinationQueue")>]
member this.DestinationQueue : bool with get, set
Public Property DestinationQueue As Boolean
Waarde van eigenschap
trueom informatie te ontvangenDestinationQueue; anders. false De standaardwaarde is false.
- Kenmerken
Voorbeelden
In het volgende codevoorbeeld ziet u hoe de DestinationQueue eigenschap wordt gebruikt.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's DestinationQueue property.
queue->MessageReadPropertyFilter->
DestinationQueue = 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
// Destinationqueue->QueueName property.
Console::WriteLine(
"Message.Destinationqueue->QueueName: {0}",
orderMessage->DestinationQueue->QueueName);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's DestinationQueue property.
queue.MessageReadPropertyFilter.DestinationQueue = 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 DestinationQueue.QueueName
// property.
Console.WriteLine("Message.DestinationQueue.QueueName: {0}",
orderMessage.DestinationQueue.QueueName);
Opmerkingen
De DestinationQueue eigenschap van de Message klasse identificeert de oorspronkelijke doelwachtrij van het bericht. Het wordt meestal gebruikt om de oorspronkelijke bestemming te bepalen van een bericht dat zich in een logboek of in een wachtrij met dode letters bevindt. Het kan ook worden gebruikt bij het terugsturen van een antwoordbericht naar een antwoordwachtrij.