Returns a Named Instance of the SessionFactory from the local "cache" identified by name.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetNamedInstance ( _
	name As String _
) As ISessionFactory
C#
public static ISessionFactory GetNamedInstance(
	string name
)
Visual C++
public:
static ISessionFactory^ GetNamedInstance(
	String^ name
)
JavaScript
NHibernate.Impl.SessionFactoryObjectFactory.getNamedInstance = function(name);

Parameters

name
Type: System..::.String
The name of the ISessionFactory.

Return Value

An instantiated ISessionFactory.

See Also