ParentIterator 结构

定义

根据 System.Xml.XPath(父轴规则)循环访问匹配父节点。Iterates over the matching parent node according to the System.Xml.XPath, parent axis rules.

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

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

注解

仅当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)

初始化 ParentIteratorInitializes the ParentIterator.

MoveNext()

将迭代器定位到下一个匹配父节点。Positions the iterator on the next matching parent node.

适用于