XPathResult.GetResultAsNodeset Method

Definition

Returns the result of the XPath query as an enumerable set of nodes.

C#
public System.Xml.XPath.XPathNodeIterator GetResultAsNodeset();

Returns

XPathNodeIterator

A collection of XPath nodes that can be iterated over.

Remarks

Use the MoveNext method of the XPathNodeIterator class within a loop to see the value of each node.

Applies to

Producto Versiones
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1