Adds all of the assembly's embedded resources whose names end with .hbm.xml.

Namespace:  NHibernate.Cfg
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function AddAssembly ( _
	assemblyName As String _
) As Configuration
C#
public Configuration AddAssembly(
	string assemblyName
)
Visual C++
public:
Configuration^ AddAssembly(
	String^ assemblyName
)
JavaScript
function addAssembly(assemblyName);

Parameters

assemblyName
Type: System..::.String
The name of the assembly to load.

Return Value

This configuration object.

Remarks

The assembly must be loadable using Load(String). If this condition is not satisfied, load the assembly manually and call AddAssembly(Assembly) instead.

See Also