Takes care of freeing the managed and unmanaged resources that
this class is responsible for.
Namespace:
NHibernate.ConnectionAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Overridable Sub Dispose ( _ isDisposing As Boolean _ ) |
C# |
---|
protected virtual void Dispose( bool isDisposing ) |
Visual C++ |
---|
protected: virtual void Dispose( bool isDisposing ) |
JavaScript |
---|
function dispose(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.