XPath.Evaluate Method ()XPath.Evaluate Method ()XPath::Evaluate Method ()

Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XPath expression.

Syntax

Public Function Evaluate() As IEnumerable(Of System.Xml.XPath.XPathItem)
 

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmException An error occurred evaluating the expression.
LicenceExceptionLicenceExceptionLicenceExceptionThis version of XmlPrime has expired.

Remarks

The items in the returned IEnumerable<T>IEnumerable(Of T)IEnumerable<T> will all be instances of XPathNavigatorXPathNavigatorXPathNavigator (if the expression returns a node), XPathAtomicValueXPathAtomicValueXPathAtomicValue (if the expression returns an atomic value) or XPathFunctionItemXPathFunctionItemXPathFunctionItem (if the expression returns a function item).

The results of the expression are only evaluated whilst they are enumerated. Any errors encountered during evaluation may be thrown from the MoveNextMoveNextMoveNext method and CurrentCurrentCurrent property of the enumerator over the IEnumerable<T>IEnumerable(Of T)IEnumerable<T>.