Takes care of freeing the managed and unmanaged resources that this class is responsible for.

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

Syntax

C#
protected virtual void Dispose(
	bool isDisposing
)
Visual Basic
Protected Overridable Sub Dispose ( _
	isDisposing As Boolean _
)
Visual C++
protected:
virtual void Dispose(
	bool isDisposing
)

Parameters

isDisposing
Type: System..::..Boolean
Indicates if this ConnectionProvider is being Disposed of or Finalized.

Remarks

If this ConnectionProvider is being Finalized (isDisposing==false) then make sure not to call any methods that could potentially bring this ConnectionProvider back to life.

If any subclasses manage resources that also need to be disposed of this method should be overridden, but don't forget to call it in the override.

See Also