LibrarySet.Add Method (XdmModule)LibrarySet.Add Method (XdmModule)LibrarySet::Add Method (XdmModule^)

Adds a module to the library collection.

Syntax

Public Function Add( _
    module As XdmModule _
) As Boolean
public bool Add(
    XdmModule module
)
public:
bool Add(
    XdmModule^ module
)
 

Parameters

module

Type: XmlPrime.XdmModuleXmlPrime.XdmModuleXmlPrime::XdmModule^

The module to add.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the module is added to the LibrarySetLibrarySetLibrarySet; falseFalsefalse if the module was already present.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionmodule is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmException An XQST0034 error is raised if there is a function in module with the same name and arity as a function already imported in this LibrarySetLibrarySetLibrarySet.

Remarks

If this module imports any other libraries then these libraries are also added to the library set.