XmlAttribute.OwnerElement Property

 

Gets the XmlElement to which the attribute belongs.

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

abstract OwnerElement : XmlElement with get
override OwnerElement : XmlElement with get

Property Value

Type: System.Xml.XmlElement

The XmlElement that the attribute belongs to or null if this attribute is not part of an XmlElement.

The following example creates an attribute and displays the OwnerElement of the attribute.

No code example is currently available or this language may not be supported.

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