End the ISession by disconnecting from the ADO.NET connection and cleaning up.

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

Syntax

Visual Basic (Declaration)
Function Close As IDbConnection
C#
IDbConnection Close()
Visual C++
IDbConnection^ Close()
JavaScript
function close();

Return Value

The connection provided by the application or nullNothingnullptra null reference (Nothing in Visual Basic)

Remarks

It is not strictly necessary to Close() the ISession but you must at least Disconnect() it.

See Also