XmlAttribute::ParentNode Property

 

Gets the parent of this node. For XmlAttribute nodes, this property always returns null.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
property XmlNode^ ParentNode {
	virtual XmlNode^ get() override;
}

Property Value

Type: System.Xml::XmlNode^

For XmlAttribute nodes, this property always returns null.

Use the OwnerElement property to get the XmlElement to which the attribute belongs.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: