XQuery.Compile Method (string, XQuerySettings)XQuery.Compile Method (String, XQuerySettings)XQuery::Compile Method (String^, XQuerySettings^)
Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program.
The specified static context settings are used.
Syntax
Public Shared Function Compile( _ query As String, _ settings As XQuerySettings _ ) As XQuery
public static XQuery Compile( string query, XQuerySettings settings )
public: static XQuery^ Compile( String^ query, XQuerySettings^ settings )
Parameters
- query
Type: System.StringSystem.StringSystem::String^
An XQuery program.
- settings
Type: XmlPrime.XQuerySettingsXmlPrime.XQuerySettingsXmlPrime::XQuerySettings^
The initial static context settings.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
query or settings is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred compiling the query. |