Message.ResponseQueue 属性

定义

获取或设置接收应用程序生成的响应消息的队列。Gets or sets the queue that receives application-generated response messages.

public:
 property System::Messaging::MessageQueue ^ ResponseQueue { System::Messaging::MessageQueue ^ get(); void set(System::Messaging::MessageQueue ^ value); };
[System.Messaging.MessagingDescription("MsgResponseQueue")]
public System.Messaging.MessageQueue ResponseQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgResponseQueue")>]
member this.ResponseQueue : System.Messaging.MessageQueue with get, set
Public Property ResponseQueue As MessageQueue

属性值

MessageQueue

应用程序生成的响应消息所返回到的 MessageQueueThe MessageQueue to which application-generated response messages are returned. 默认值为 nullThe default is null.

属性

例外

消息队列经过筛选后忽略了 ResponseQueue 属性。The message queue is filtered to ignore the ResponseQueue property.

示例

下面的代码示例获取并设置消息的属性的值 ResponseQueueThe following code example gets and sets the value of a message's ResponseQueue property.

注解

ResponseQueue属性标识接收应用程序生成的响应消息的队列,接收方应用程序将该消息返回给发送应用程序。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.

适用于

另请参阅