XQuery.Evaluate Method ()XQuery.Evaluate Method ()XQuery::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 XQuery program.
Exceptions
Exception | Condition |
XdmExceptionXdmExceptionXdmException | An error occurred evaluating the query. |
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 query 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.