次の方法で共有


XmlElement クラス

要素を表します。

この型のすべてのメンバの一覧については、XmlElement メンバ を参照してください。

System.Object
   System.Xml.XmlNode
      System.Xml.XmlLinkedNode
         System.Xml.XmlElement

Public Class XmlElement
   Inherits XmlLinkedNode
[C#]
public class XmlElement : XmlLinkedNode
[C++]
public __gc class XmlElement : public XmlLinkedNode
[JScript]
public class XmlElement extends XmlLinkedNode

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

要素は、W3C ドキュメント オブジェクト モデル (DOM: Document Object Model) では最も一般的なノードです。要素には、関連する属性を格納できます。 XmlElement クラスには、属性 (GetAttributeSetAttributeRemoveAttributeGetAttributeNode など) にアクセスできるメソッドが数多くあります。また、 XmlAttributeCollection を返す Attributes プロパティを使用して、このコレクションの名前やインデックスにより属性にアクセスすることもできます。

必要条件

名前空間: System.Xml

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: System.Xml (System.Xml.dll 内)

参照

XmlElement メンバ | System.Xml 名前空間 | XmlDocument.CreateElement | DOM の属性へのアクセス | XML ドキュメント オブジェクト モデル (DOM) | XmlAttribute | XmlDocument