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.

Syntax

Public Sub ImportModule( _
    module As XdmModule _
)
public void ImportModule(
    XdmModule module
)
public:
void ImportModule(
    XdmModule^ module
)
 

Parameters

module

Type: XmlPrime.XdmModuleXmlPrime.XdmModuleXmlPrime::XdmModule^

A module to import.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionmodule 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.