XQuery.Evaluate Method (IResultDocumentHandler)XQuery.Evaluate Method (IResultDocumentHandler)XQuery::Evaluate Method (IResultDocumentHandler^)

Returns an XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XQuery program.

Syntax

Public Function Evaluate( _
    resultDocumentHandler As IResultDocumentHandler _
) As XPathItemCollection
public XPathItemCollection Evaluate(
    IResultDocumentHandler resultDocumentHandler
)
public:
XPathItemCollection^ Evaluate(
    IResultDocumentHandler^ resultDocumentHandler
)
 

Parameters

resultDocumentHandler

Type: XmlPrime.IResultDocumentHandlerXmlPrime.IResultDocumentHandlerXmlPrime::IResultDocumentHandler^

The result document handler.

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmException An error occurred evaluating the query.
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 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.

This method is suitable for queries which use fn:put.