XPathResult.GetResultAsNodeset 方法
定义
将 XPath 查询的结果作为节点的可枚举集返回。Returns the result of the XPath query as an enumerable set of nodes.
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
返回
可循环访问的 XPath 节点的集合。A collection of XPath nodes that can be iterated over.
注解
在循环中使用 MoveNext 类的 XPathNodeIterator 方法可查看每个节点的值。Use the MoveNext method of the XPathNodeIterator class within a loop to see the value of each node.