DescendantIterator.Create(XPathNavigator, XmlNavigatorFilter, Boolean) 方法

定义

初始化 DescendantIteratorInitializes the DescendantIterator.

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

public:
 void Create(System::Xml::XPath::XPathNavigator ^ input, System::Xml::Xsl::Runtime::XmlNavigatorFilter ^ filter, bool orSelf);
public void Create (System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.Runtime.XmlNavigatorFilter filter, bool orSelf);
member this.Create : System.Xml.XPath.XPathNavigator * System.Xml.Xsl.Runtime.XmlNavigatorFilter * bool -> unit
Public Sub Create (input As XPathNavigator, filter As XmlNavigatorFilter, orSelf As Boolean)

参数

input
XPathNavigator

XPathNavigator,标识从其开始遍历子代的节点。XPathNavigator that identifies the node from which you start traversing descendants.

filter
XmlNavigatorFilter

一个 XmlNavigatorFilter 类的实例,通过该实例可以基于名称来筛选节点。An instance of the XmlNavigatorFilter class, which enables you to filter nodes based on the name. 有关详细信息,请参阅 XmlNavigatorFilterFor more information, see XmlNavigatorFilter.

orSelf
Boolean

Boolean,指示是作为迭代的一部分返回当前节点还是筛除当前节点。Boolean that indicates whether the current node is returned as part of the iteration or filtered out.

注解

DescendantIterator不能有重复项。The DescendantIterator cannot have duplicates.

适用于