System.Xml.XPath.XPathNavigator.MoveToNextAttribute Method

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the next attribute.

Syntax

public abstract bool MoveToNextAttribute ()

Returns

Returns true if the System.Xml.XPath.XPathNavigator is successful moving to the next attribute; false if there are no more attributes. If false, the position of the System.Xml.XPath.XPathNavigator is unchanged.

Remarks

If the System.Xml.XPath.XPathNavigator is not currently positioned on an attribute, this method returns false and the position of the System.Xml.XPath.XPathNavigator does not change.

When the System.Xml.XPath.XPathNavigator is positioned on an attribute, the methods XPathNavigator.MoveToNext, XPathNavigator.MoveToPrevious, and XPathNavigator.MoveToFirst methods are not applicable. These methods always return false and do not change the position of the System.Xml.XPath.XPathNavigator.

After the System.Xml.XPath.XPathNavigator is positioned on an attribute, you can call XPathNavigator.MoveToParent to move to the owner element.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0