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

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

Message クラスの UseTracing プロパティは、メッセージが送信先キューに転送されていく途中でメッセージの経路を追跡するかどうかを指定します。true の場合は、元のメッセージがメッセージ キューのルーティング サーバーを通過するたびに、メッセージ キューによって生成されるレポート メッセージがシステム レポート キューに送信されます。
トレースを使用するには、Active Directory を設定し、メッセージ キュー エンタープライズのレポート キューを指定する必要があります。これらの設定は管理者が行います。

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


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

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