Message.DestinationQueue Property

Definition

Gets the intended destination queue for a message.

C#
[System.Messaging.MessagingDescription("MsgDestinationQueue")]
public System.Messaging.MessageQueue DestinationQueue { get; }

Property Value

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

Attributes

Exceptions

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

-or-

The message queue is filtered to ignore the DestinationQueue property.

Examples

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

Remarks

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

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also