The DestinationQueueInfo property specifies the destination queue for the message.
Type: | MSMQQueueInfo |
Run time: | read-only |
set object2 = object1.DestinationQueueInfo
Syntax Element | Description |
---|---|
object1 | Message (MSMQMessage) object that represents the message. |
object2 | Queue information (MSMQQueueInfo) object that represents the destination queue. |
MSMQQueueInfo object.
The DestinationQueueInfo property is set by MSMQ when a message is sent. It is typically used when reading messages from a machine journal, dead letter queue, or response messages from a response queue. DestinationQueueInfo provides the destination queue of the original message.
To provide the destination queue of a message in a response message, set the correlation identifier (CorrelationId) of the response message to the DestinationQueueInfo property of the original message. The application reading the response message can then look at the correlation identifier to determine the origin of the response message. For an example of this, see Sending Messages that Request a Response.
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.