Message.DestinationQueue Message.DestinationQueue Message.DestinationQueue Message.DestinationQueue Property


Gets the intended destination queue for a message.

 property System::Messaging::MessageQueue ^ DestinationQueue { System::Messaging::MessageQueue ^ get(); };
public System.Messaging.MessageQueue DestinationQueue { get; }
member this.DestinationQueue : System.Messaging.MessageQueue
Public ReadOnly Property DestinationQueue As MessageQueue

Property Value

A MessageQueue that specifies the intended destination queue for the message.


The message has not been sent. This property can only be read on messages retrieved from a queue.


The message queue is filtered to ignore the DestinationQueue property.


The following code example displays the value of a message's DestinationQueue property.


The DestinationQueue property is most commonly used to determine the original destination of a message that arrived in a journal or dead-letter queue. Usually, you do not need to examine this property, because you typically retrieve the message from its destination queue.

Applies to

See also