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

Returns an XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XPath expression.

Syntax

Public Function Evaluate() As XPathItemCollection
public XPathItemCollection Evaluate()
public:
XPathItemCollection^ Evaluate()
 

Exceptions

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

Remarks

The items in the returned XPathItemCollectionXPathItemCollectionXPathItemCollection will all either be XPathNavigatorXPathNavigatorXPathNavigator instances (for nodes) or XPathAtomicValueXPathAtomicValueXPathAtomicValue instances (for atomic values).

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 XPathItemCollectionXPathItemCollectionXPathItemCollection.