MessagePropertyFilter.TimeToReachQueue プロパティ
アセンブリ: System.Messaging (system.messaging.dll 内)
 構文
構文Dim instance As MessagePropertyFilter Dim value As Boolean value = instance.TimeToReachQueue instance.TimeToReachQueue = value
/** @property */ public boolean get_TimeToReachQueue () /** @property */ public void set_TimeToReachQueue (boolean value)
public function get TimeToReachQueue () : boolean public function set TimeToReachQueue (value : boolean)
Message.TimeToReachQueue 情報を受信する場合は true。それ以外の場合は false。既定値は false です。
 解説
解説 使用例
使用例TimeToReachQueue プロパティの使用方法を示すコード例を次に示します。
// Set the queue's MessageReadPropertyFilter property to enable the // message's TimeToReachQueue property. queue.MessageReadPropertyFilter.TimeToReachQueue = 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 TimeToReachQueue property. Console.WriteLine("Message.TimeToReachQueue: {0}", orderMessage.TimeToReachQueue);
// Set the queue's MessageReadPropertyFilter property // to enable the message's TimeToReachQueue property. queue->MessageReadPropertyFilter-> TimeToReachQueue = 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 // TimeToReachQueue property. Console::WriteLine("Message.TimeToReachQueue: {0}", orderMessage->TimeToReachQueue);
// Set the queue's MessageReadPropertyFilter property to enable the // message's TimeToReachQueue property. queue.get_MessageReadPropertyFilter().set_TimeToReachQueue(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 TimeToReachQueue property. Console.WriteLine("Message.TimeToReachQueue: {0}", orderMessage.get_TimeToReachQueue());
 .NET Framework のセキュリティ
.NET Framework のセキュリティ プラットフォーム
プラットフォーム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.TimeToReachQueue プロパティ
MessagePropertyFilter.TimeToBeReceived プロパティ
MessageQueue
- MessagePropertyFilter.TimeToReachQueue プロパティのページへのリンク

 
                             
                    


