Gets if the ISession is connected.

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

Syntax

C#
public override bool IsConnected { get; }
Visual Basic
Public Overrides ReadOnly Property IsConnected As Boolean
	Get
Visual C++
public:
virtual property bool IsConnected {
	bool get () override;
}

Field Value

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

Implements

ISessionImplementor..::..IsConnected
ISession..::..IsConnected
ISessionImplementor..::..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