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

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

Message クラスの TimeToBeReceived プロパティは、送信されたメッセージが送信先キューから受信されるまでの合計時間 (秒) を指定します。対象のキューからメッセージが取得されるまでのタイム リミットには、送信先キューに到達するまでにかかる時間と、アプリケーションによってメッセージが取得されるまでキュー内に待機している時間とが含まれます。

TimeToBeReceived プロパティの使用方法を示すコード例を次に示します。
// Set the queue's MessageReadPropertyFilter property to enable the // message's TimeToBeReceived property. queue.MessageReadPropertyFilter.TimeToBeReceived = 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 TimeToBeReceived property. Console.WriteLine("Message.TimeToBeReceived: {0}", orderMessage.TimeToBeReceived);
// Set the queue's MessageReadPropertyFilter property // to enable the message's TimeToBeReceived property. queue->MessageReadPropertyFilter-> TimeToBeReceived = 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 // TimeToBeReceived property. Console::WriteLine("Message.TimeToBeReceived: {0}", orderMessage->TimeToBeReceived);
// Set the queue's MessageReadPropertyFilter property to enable the // message's TimeToBeReceived property. queue.get_MessageReadPropertyFilter().set_TimeToBeReceived(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 TimeToBeReceived property. Console.WriteLine("Message.TimeToBeReceived: {0}", orderMessage.get_TimeToBeReceived());


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.TimeToBeReceived プロパティ
TimeToReachQueue
MessageQueue
Weblioに収録されているすべての辞書からMessagePropertyFilter.TimeToBeReceived プロパティを検索する場合は、下記のリンクをクリックしてください。

- MessagePropertyFilter.TimeToBeReceived プロパティのページへのリンク