System.Xml.XmlNode.ParentNode Property

Gets the parent of this node (for nodes that can have parents).

Syntax

public virtual XmlNode ParentNode { get; }

Value

The node that this node is a child of, or null if this is an System.Xml.XmlDocument or the node is not contained in a document tree.

Remarks

None.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0