XPathResult.GetResultAsNodeset 方法

定义

将 XPath 查询的结果作为节点的可枚举集返回。

public:
 System::Xml::XPath::XPathNodeIterator ^ GetResultAsNodeset();
public System.Xml.XPath.XPathNodeIterator GetResultAsNodeset ();
member this.GetResultAsNodeset : unit -> System.Xml.XPath.XPathNodeIterator
Public Function GetResultAsNodeset () As XPathNodeIterator

返回

XPathNodeIterator

XPathNodeIterator

可循环访问的 XPath 节点的集合。

注解

在循环中使用 MoveNext 类的 XPathNodeIterator 方法可查看每个节点的值。

适用于