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

Public ReadOnly Property Attributes As StringDictionary
public StringDictionary Attributes { get; }
トレース リスナのカスタム属性を格納している 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 メソッドのトピックを参照してください。

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.Attributes プロパティを検索する場合は、下記のリンクをクリックしてください。

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