SecurityElement.Attributes プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As SecurityElement Dim value As Hashtable value = instance.Attributes instance.Attributes = value
/** @property */ public Hashtable get_Attributes () /** @property */ public void set_Attributes (Hashtable value)
XML 要素の属性値の Hashtable オブジェクト。


各属性は、名前/値ペアとして、Hashtable に格納されます。
属性の名前と値には、有効な XML 属性文字だけを使用してください。Escape を使用して、文字列から無効な文字を削除します。
二重引用符で囲まれた文字列はサポートされていません。名前/値ペアの文字列には引用符または引用符を必要とするその他の文字を使用しないでください。

Attributes プロパティを使用して XML 要素の属性を取得する方法を次のコード例に示します。このコード例は、SecurityElement クラスのトピックで取り上げているコード例の一部分です。
Dim attributeKeys As Hashtable = xmlElement.Attributes Dim attributeValue As String = attributeKeys(attributeName).ToString()
Hashtable attributeKeys = xmlElement.Attributes; string attributeValue = attributeKeys[attributeName].ToString();
Hashtable^ attributeKeys = xmlElement->Attributes; String^ attributeValue = attributeKeys[ attributeName ]->ToString();

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


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