PrecedingIterator 结构

定义

按文档顺序循环访问所有内容类型的节点,这些节点位于起始节点之前。Iterates over all the content-typed nodes which precede the starting node in document order. 以相反的文档顺序返回这些节点。Returns nodes in reverse document order.

此 API 支持产品基础结构,不能在代码中直接使用。

public value class PrecedingIterator
public struct PrecedingIterator
type PrecedingIterator = struct
Public Structure PrecedingIterator
继承
PrecedingIterator

注解

仅当MoveNext方法返回true时, 导航器的状态才会更改。The state of the navigator changes only if the MoveNext method has returned true.

属性

Current

返回当前结果导航器。Returns the current result navigator.

方法

Create(XPathNavigator, XmlNavigatorFilter)

初始化 PrecedingIteratorInitializes the PrecedingIterator. PrecedingIterator 不包含重复项。The PrecedingIterator does not contain duplicates.

MoveNext()

按相反的文档顺序将迭代器定位到下一个前面的节点。Positions the iterator on the next preceding node in reverse document order.

适用于