TraceListener.TraceOutputOptions プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TraceListener.TraceOutputOptions プロパティの意味・解説 

TraceListener.TraceOutputOptions プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

トレース出力オプションを取得または設定します。

名前空間: System.Diagnostics
アセンブリ: System (system.dll 内)
構文構文

<ComVisibleAttribute(False)> _
Public Property TraceOutputOptions As
 TraceOptions
Dim instance As TraceListener
Dim value As TraceOptions

value = instance.TraceOutputOptions

instance.TraceOutputOptions = value
[ComVisibleAttribute(false)] 
public TraceOptions TraceOutputOptions { get;
 set; }
[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 クラスのトピックで取り上げているコード例の一部分です。

ts.Listeners("console").TraceOutputOptions = ts.Listeners("console").TraceOutputOptions
 Or TraceOptions.Callstack
ts.Listeners["console"].TraceOutputOptions |= TraceOptions.Callstack;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

TraceListener.TraceOutputOptions プロパティのお隣キーワード

   

英語⇒日本語
日本語⇒英語
   



TraceListener.TraceOutputOptions プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS