TraceListener.TraceOutputOptions プロパティ
アセンブリ: System (system.dll 内)

Dim instance As TraceListener Dim value As TraceOptions value = instance.TraceOutputOptions instance.TraceOutputOptions = value
[ComVisibleAttribute(false)] public: property TraceOptions TraceOutputOptions { TraceOptions get (); void set (TraceOptions value); }
/** @property */ public TraceOptions get_TraceOutputOptions () /** @property */ public void set_TraceOutputOptions (TraceOptions value)
public function get TraceOutputOptions () : TraceOptions public function set TraceOutputOptions (value : TraceOptions)
TraceOptions 値のビットごとの組み合わせ。既定値は None です。

TraceOutputOptions プロパティは、トレース出力のオプション コンテンツを決定します。このプロパティは、構成ファイルで設定するか、コードのセクションにだけ追加データを含める処理の実行中にプログラムによって設定します。たとえば、トレース出力に呼び出し履歴情報を追加する場合は、コンソール トレース リスナの TraceOutputOptions プロパティに TraceOptions.Callstack を設定します。
![]() |
---|
EventLogTraceListener では、大量のデータがログに書き込まれる可能性があるため、TraceOutputOptions プロパティを使用できません。 |

コンソール トレース リスナの TraceOutputOptions プロパティの設定を次のコード例に示します。コンソール トレース リスナは、トレース ソースの Listeners プロパティに列挙されるリスナの 1 つです。このコード例は、TraceSource クラスのトピックで取り上げているコード例の一部分です。

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からTraceListener.TraceOutputOptions プロパティを検索する場合は、下記のリンクをクリックしてください。

- TraceListener.TraceOutputOptions プロパティのページへのリンク