Partilhar via


XPathNavigator.HasAttributes Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Overridable ReadOnly Property HasAttributes As Boolean
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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.