XQuery.Compile Method (string, XmlNameTable)XQuery.Compile Method (String, XmlNameTable)XQuery::Compile Method (String^, XmlNameTable^)
Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program.
Default static context settings are used.
Syntax
Public Shared Function Compile( _ query As String, _ nameTable As System.Xml.XmlNameTable _ ) As XQuery
public static XQuery Compile( string query, System.Xml.XmlNameTable nameTable )
public: static XQuery^ Compile( String^ query, System.Xml::XmlNameTable^ nameTable )
Parameters
- query
Type: System.StringSystem.StringSystem::String^
An XQuery program.
- nameTable
Type: System.Xml.XmlNameTableSystem.Xml.XmlNameTableSystem.Xml::XmlNameTable^
The name table for documents used with this query.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
query or nameTable is null
a null reference (Nothing in Visual Basic)
nullptr .
|
XdmExceptionXdmExceptionXdmException | An error occurred compiling the query. |
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |