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.

適用於

另請參閱