MessagePropertyFilter.ResponseQueue プロパティ
アセンブリ: System.Messaging (system.messaging.dll 内)

Dim instance As MessagePropertyFilter Dim value As Boolean value = instance.ResponseQueue instance.ResponseQueue = value
/** @property */ public boolean get_ResponseQueue () /** @property */ public void set_ResponseQueue (boolean value)
Message.ResponseQueue 情報を受信する場合は true。それ以外の場合は false。既定値は true です。

Message クラスの ResponseQueue プロパティは、受信側アプリケーションによって送信元アプリケーションに返されるアプリケーション生成の応答メッセージを受け取るキューを識別します。応答キューは、送信元アプリケーションがメッセージを送信するときに送信元アプリケーションが指定します。使用できる任意のキューを応答キューとして指定できます。
応答キューに対して返されるメッセージは、アプリケーション固有です。アプリケーションは、メッセージの内容と、メッセージの受信時に実行する処理内容を定義する必要があります。

ResponseQueue プロパティの使用方法を示すコード例を次に示します。
// Set the queue's MessageReadPropertyFilter property to enable the // message's ResponseQueue property. queue.MessageReadPropertyFilter.ResponseQueue = true; // Peek at the message. Time out after ten seconds in case the message // was not delivered. orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0)); // Display the value of the message's ResponseQueue.QueueName property. if(orderMessage.ResponseQueue != null) { Console.WriteLine("Message.ResponseQueue.QueueName: {0}", orderMessage.ResponseQueue.QueueName); }
// Set the queue's MessageReadPropertyFilter property // to enable the message's ResponseQueue property. queue->MessageReadPropertyFilter->ResponseQueue = true; // Peek at the message. Time out after ten seconds // in case the message was not delivered. orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0)); // Display the value of the message's // Responsequeue->QueueName property. if (orderMessage->ResponseQueue != nullptr) { Console::WriteLine( "Message.Responsequeue->QueueName: {0}", orderMessage->ResponseQueue->QueueName); }
// Set the queue's MessageReadPropertyFilter property to enable the // message's ResponseQueue property. queue.get_MessageReadPropertyFilter().set_ResponseQueue(true); // Peek at the message. Time out after ten seconds in case the message // was not delivered. orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0)); // Display the value of the message's ResponseQueue.QueueName property. if (orderMessage.get_ResponseQueue() != null) { Console.WriteLine("Message.ResponseQueue.QueueName: {0}", orderMessage.get_ResponseQueue().get_QueueName()); }


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


MessagePropertyFilter クラス
MessagePropertyFilter メンバ
System.Messaging 名前空間
Message.ResponseQueue プロパティ
MessageQueue
- MessagePropertyFilter.ResponseQueue プロパティのページへのリンク