Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft