Message.ResponseQueue Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the queue that receives application-generated response messages.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public MessageQueue ResponseQueue { get; set; }

Property Value

Type: System.Messaging.MessageQueue

The MessageQueue to which application-generated response messages are returned. The default is null.

Exception Condition

The message queue is filtered to ignore the ResponseQueue property.

The ResponseQueue property identifies the queue that receives application-generated response messages, which the receiving application returns to the sending application. The sending application specifies response queues when the application sends its messages. Any available queue can be specified as a response queue.

Messages returned to the response queue are application-specific. The application must define the contents of the messages as well as the action to take upon receipt of a message.

The following code example gets and sets the value of a message's ResponseQueue property.

.NET Framework
Available since 1.1
Return to top