Compartir a través de


XPathNodeIterator.CurrentPosition Property

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

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

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

Syntax

'Declaration
Public MustOverride ReadOnly Property CurrentPosition As Integer
public abstract int CurrentPosition { get; }

Property Value

Type: System.Int32
The int index of the current 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.

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.