Gets if the ISession is connected.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property IsConnected As Boolean
C#
public bool IsConnected { get; }
Visual C++
public:
virtual property bool IsConnected {
	bool get () sealed;
}
JavaScript
function get_isConnected();

Field Value

trueTruetruetrue (True in Visual Basic) if the ISession is connected.

Implements

ISession..::.IsConnected

Remarks

An ISession is considered connected if there is an IDbConnection (regardless of its state) or if it the field connect is true. Meaning that it will connect at the next operation that requires a connection.

See Also