HasAttributes Property

XPathNavigator.HasAttributes Property


Gets a value indicating whether the current node has any attributes.

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

public virtual bool HasAttributes { get; }

Property Value

Type: System.Boolean

Returns true if the current node has attributes; returns false if the current node has no attributes, or if the XPathNavigator is not positioned on an element node.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 4.0
Return to top
© 2015 Microsoft