XQuery.Compile Method (IXPathNavigable, XQuerySettings)XQuery.Compile Method (IXPathNavigable, XQuerySettings)XQuery::Compile Method (IXPathNavigable^, XQuerySettings^)

Compiles the XQuery program expressed using the XML Syntax for XQuery 1.0 (XQueryX) and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.

Syntax

Public Shared Function Compile( _
    query As System.Xml.XPath.IXPathNavigable, _
    settings As XQuerySettings _
) As XQuery
public static XQuery Compile(
    System.Xml.XPath.IXPathNavigable query,
    XQuerySettings settings
)
public:
static XQuery^ Compile(
    System.Xml.XPath::IXPathNavigable^ query, 
    XQuerySettings^ settings
)
 

Parameters

query

Type: System.Xml.XPath.IXPathNavigableSystem.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^

An XQuery program expressed using the XML Syntax for XQuery 1.0 (XQueryX).

settings

Type: XmlPrime.XQuerySettingsXmlPrime.XQuerySettingsXmlPrime::XQuerySettings^

The initial static context settings.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException query or settings is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionAn error occurred compiling the query.