XPathResult.GetResultAsNodeset 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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
返回
可循环访问的 XPath 节点的集合。
注解
在循环中使用 MoveNext 类的 XPathNodeIterator 方法可查看每个节点的值。