XmlAttribute.ParentNode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 override XmlNode ParentNode { get; }

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: