System.Xml.XPath.XPathNodeIterator.CurrentPosition Property

When overridden in a derived class, gets the index of the current position in the selected set of nodes.

Syntax

public abstract int CurrentPosition { get; }

Value

an integer value that represents the position.

Remarks

The index is 1-based. Therefore, the first node has an index of 1. An index of 0 indicates there are no selected nodes. This property always returns a positive integer.

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