StaticContextSettings.ImportModule Method (string)StaticContextSettings.ImportModule Method (String)StaticContextSettings::ImportModule Method (String^)
Imports the library with the specified target namespace.
Parameters
- targetNamespace
Type: System.StringSystem.StringSystem::String^
The target namespace to import.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | targetNamespace is null
a null reference (Nothing in Visual Basic)
nullptr . |
Remarks
The target namespace is implicitly imported in all modules of the XQuery Program, XPath Expression or XSL Transformation. This is equivalent to the following XQuery declaration:
import module namespace " ";
This method overrides any location hints specified in import module
statements in the query body, and
if no modules in this namespace are added to LibrariesLibrariesLibraries then an XdmExceptionXdmExceptionXdmException
will be raised when the query is compiled.