MSMQMessage.ResponseQueueInfo

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The ResponseQueueInfo property of the MSMQMessage object specifies a queue for receiving response messages returned from the receiving application.

Data type: MSMQQueueInfo
Run-time access: Read/write
Property ResponseQueueInfo As MSMQQueueInfo  

Property Value

An MSMQQueueInfo object that represents the response queue (in C++, a smart pointer to the IMSMQQueueInfo interface).

Remarks

ResponseQueueInfo is used to send the format name of another queue to the receiving application. Typically, this is done so that the receiving application can send response messages back to the sending application. For information on response queues, see Response Queues.

Note

The MSMQQueueInfo object of a private queue (which would be inaccessible otherwise) can also be sent using ResponseQueueInfo.Messages returned to the response queue are application-defined. The application must define what is in the messages as well as what is to be done when a message is received.

Equivalent API Function Property

With API function calls, the equivalent property for setting and retrieving the response queue is PROPID_M_RESP_QUEUE.

Example Code

The following examples are included in Using Message Queuing.

For an example of See
Sending a message that provides the format name of a response queue Visual Basic Code Example: Requesting Response Messages
Retrieving a message from a queue and returning a response message Visual Basic Code Example: Returning Response Messages

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

MSMQMessage
MSMQQueueInfo
PROPID_M_RESP_QUEUE