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

Public ReadOnly Property Attributes As StringDictionary
public StringDictionary Attributes { get; }
トレース スイッチの大文字小文字を区別しないカスタム属性を格納している StringDictionary。

Attributes プロパティは、アプリケーションの構成ファイル内の参照されるカスタム属性を識別します。参照されないカスタム属性は列挙されません。Switch クラスから継承されたクラスでカスタム属性を追加するには、GetSupportedAttributes メソッドをオーバーライドしてカスタム属性名の文字列配列を返します。

カスタム スイッチの認識されない属性を表示する方法を次のコード例に示します。
' Get the custom attributes for the trace source switch. For Each de In ts.Switch.Attributes Console.WriteLine(de.Key + " " + de.Value)
// Get the custom attributes for the trace source switch. foreach (DictionaryEntry de in ts.Switch.Attributes) Console.WriteLine(de.Key + " " + de.Value);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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