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

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

TraceListener.Attributes プロパティ

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

アプリケーション構成ファイル定義されているカスタム トレース リスナ属性取得します

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

Dim instance As TraceListener
Dim value As StringDictionary

value = instance.Attributes
public StringDictionary Attributes { get; }
public:
property StringDictionary^ Attributes {
    StringDictionary^ get ();
}
/** @property */
public StringDictionary get_Attributes ()
public function get Attributes
 () : StringDictionary

プロパティ
トレース リスナカスタム属性格納している StringDictionary。

解説解説

TraceListener クラスから継承されクラスは、GetSupportedAttributes メソッドオーバーライドしてカスタム属性名の文字列配列返すことによって、カスタム属性追加できますAttributes プロパティは、アプリケーション構成ファイル内の参照されるカスタム属性識別します。たとえば、次に示す構成ファイル抜粋では、DelimitedListTraceListener カスタム属性 "delimiter" が参照されています。この例では、Attributes プロパティは文字列 "delimiter" を格納しているStringDictionary返します

<listeners>
  <add name="delimitedListener" 
    type="System.Diagnostics.DelimitedListTraceListener" 
    delimiter=":" 
    initializeData="delimitedOutput.txt" 
    traceOutputOptions="ProcessId, DateTime" />
  <remove name="Default" />
</listeners>

参照されないカスタム属性列挙されません。詳細については、GetSupportedAttributes メソッドトピック参照してください

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からTraceListener.Attributes プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTraceListener.Attributes プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTraceListener.Attributes プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

TraceListener.Attributes プロパティのお隣キーワード
検索ランキング

   

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



TraceListener.Attributes プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS