XQuery.Evaluate Method ()XQuery.Evaluate Method ()XQuery::Evaluate Method ()
Syntax
Public Function Evaluate() As IEnumerable(Of System.Xml.XPath.XPathItem)
public IEnumerable<System.Xml.XPath.XPathItem> Evaluate()
public: IEnumerable<System.Xml.XPath::XPathItem^>^ Evaluate()
Return Value
Type: System.Collections.Generic.IEnumerable<T>System.Collections.Generic.IEnumerable(Of T)System.Collections.Generic::IEnumerable<T>^
An IEnumerable<T>IEnumerable(Of T)IEnumerable<T> 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 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 IEnumerable<T>IEnumerable(Of T)IEnumerable<T>.
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).
This method is not suitable for queries which use fn:put
. Call to fn:put
will raise
an exception.