XPathNodeIterator.Count 属性

定义

获取所选节点集中最后一个节点的索引。Gets the index of the last node in the selected set of nodes.

public:
 virtual property int Count { int get(); };
public virtual int Count { get; }
member this.Count : int
Public Overridable ReadOnly Property Count As Integer

属性值

所选节点集中最后一个节点的索引或者 0 (如果没有选择节点)。The index of the last node in the selected set of nodes, or 0 if there are no selected nodes.

注解

Count 属性不影响 XPathNodeIterator的位置。The Count property does not affect the position of the XPathNodeIterator.

适用于