NShape Reference
AddLibrary Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Project Class >

NShape Reference
AddLibrary Method

Previous pageReturn to chapter overviewNext page

Adds the given library assembly to the project.

Syntax

public void AddLibrary(Assembly assembly, bool unloadOnClose)

Description

Adds the given library assembly to the project.

The library load mechanism of NShape 1.0.x is equal to

project.AutoLoadLibraries = true;
project.AddLibrary(assembly, false);

Parameters

Name

Description

Assembly

Shape or model object library assembly to add.

unloadOnClose

Specifies whether the library should be unloaded when closing the project.

When setting AutoLoadLibraries to false, libraries should not be unloaded when closing the project.

Exceptions

Exception

Condition

ArgumentNullException

Parameter assembly is null.

See Also

Class Reference: Project.AddLibraryByName Method

Class Reference: Project.AddLibrarByFilePath Method

Class Reference: Project.AutoLoadLibraries Property

Class Reference: Project.LibrarySearchPaths Property