StaticContextSettings.ImportModule Method (XdmModule)StaticContextSettings.ImportModule Method (XdmModule)StaticContextSettings::ImportModule Method (XdmModule^)
Adds the specified module to the set of available libraries and imports the library with the module's namespace.
Parameters
- module
Type: XmlPrime.XdmModuleXmlPrime.XdmModuleXmlPrime::XdmModule^
A module to import.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | module is null
a null reference (Nothing in Visual Basic)
nullptr . |
Remarks
The module specified is added to LibrariesLibrariesLibraries, and the namespace of the module is implicitly imported in all modules of the XQuery Program, XPath Expression or XSL Transformation.
If the namespace of the module is explicitly imported (via an import module
statement) then the
declaration in the query is ignored, and only the libraries added to the static context settings will be used.