XPath.Evaluate Method ()XPath.Evaluate Method ()XPath::Evaluate Method ()
Syntax
Public Function Evaluate() As XPathItemCollection
public XPathItemCollection Evaluate()
public: XPathItemCollection^ Evaluate()
Return Value
Type: XmlPrime.XPathItemCollectionXmlPrime.XPathItemCollectionXmlPrime::XPathItemCollection^
An XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XPath expression.
Exceptions
Exception | Condition |
XdmExceptionXdmExceptionXdmException | An error occurred evaluating the expression. |
LicenceExceptionLicenceExceptionLicenceException | This 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.