StaticContextSettings.ImportModule Method (XdmModule)StaticContextSettings.ImportModule Method (XdmModule)StaticContextSettings::ImportModule Method (XdmModule^)

Imports the library with the specified target namespace, and adds the specified module to the library.

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 the XQuery Program, XPath Expression or XSL Transformation.

If the namespace 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.