XQuery.CompileExternalVariable MethodXQuery.CompileExternalVariable MethodXQuery::CompileExternalVariable Method
Compiles the specified XQuery expression and returns an XQueryXQueryXQuery instance that
represents the XQuery expression using default static context settings.
The specified static context settings are used.
Syntax
Public Shared Function CompileExternalVariable( _ query As String, _ settings As XQuerySettings _ ) As XPathItemCollection
public static XPathItemCollection CompileExternalVariable( string query, XQuerySettings settings )
public: static XPathItemCollection^ CompileExternalVariable( String^ query, XQuerySettings^ settings )
Parameters
- query
Type: System.StringSystem.StringSystem::String^
An XQuery expression.
- settings
Type: XmlPrime.XQuerySettingsXmlPrime.XQuerySettingsXmlPrime::XQuerySettings^
The initial static context settings.
Return Value
Type: XmlPrime.XPathItemCollectionXmlPrime.XPathItemCollectionXmlPrime::XPathItemCollection^
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
query or settings is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred compiling the query. |
Remarks
The CompileExternalVariableCompileExternalVariableCompileExternalVariable method is used to compile a single XQuery expression,
which can then be used to set the value of an external
declared variable in another query.
The NameTableNameTableNameTable property of the settings parameter should refer to the same XmlNameTableXmlNameTableXmlNameTable as is used in the XQueryXQueryXQuery for which this expression is a parameter.