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

Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.

Syntax

Public Function Evaluate( _
    settings As DynamicContextSettings _
) As IEnumerable(Of System.Xml.XPath.XPathItem)
 

Parameters

settings

Type: XmlPrime.DynamicContextSettingsXmlPrime.DynamicContextSettingsXmlPrime::DynamicContextSettings^

The settings of the dynamic evaluation context.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionsettings is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmException An error occurred evaluating the query.
InvalidOperationExceptionInvalidOperationExceptionInvalidOperationExceptionThe query is an updating expression.

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