次の方法で共有


XmlNode.OwnerDocument プロパティ

このノードが属する XmlDocument を取得します。

Public Overridable ReadOnly Property OwnerDocument As XmlDocument
[C#]
public virtual XmlDocument OwnerDocument {get;}
[C++]
public: __property virtual XmlDocument* get_OwnerDocument();
[JScript]
public function get OwnerDocument() : XmlDocument;

プロパティ値

このノードが属する XmlDocument

ノードが XmlDocument (NodeType が XmlNodeType.Document と等しい) の場合、このプロパティは null 参照 (Visual Basic では Nothing) を返します。

解説

ノードを現在のノードに追加する場合は、 OwnerDocument プロパティによって返された XmlDocument を使用してノードを作成します。

使用例

このプロパティの使用例については、 OwnerDocument (XmlElement クラス) のトピックを参照してください。

必要条件

プラットフォーム: 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

参照

XmlNode クラス | XmlNode メンバ | System.Xml 名前空間