संपादित करें

इसके माध्यम से साझा किया गया


Message.DestinationQueue Property

Definition

Gets the intended destination queue for a message.

public:
 property System::Messaging::MessageQueue ^ DestinationQueue { System::Messaging::MessageQueue ^ get(); };
[System.Messaging.MessagingDescription("MsgDestinationQueue")]
public System.Messaging.MessageQueue DestinationQueue { get; }
[<System.Messaging.MessagingDescription("MsgDestinationQueue")>]
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.

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

See also