| Visual Basic (Declaration) | |
|---|---|
Protected Overloads Overridable Sub Dispose( _ ByVal isDisposing As Boolean _ ) | |
| C# | |
|---|---|
protected virtual void Dispose( bool isDisposing ) | |
Parameters
- isDisposing
- True if this method is being called as a result of this object's Dispose method, or false if the finalizer invoked this method.
When the isDisposing parameter is true, this method releases all resources held by any managed objects that this component references (namely the underlying System.Data.IDbConnection).
Derived classes override this method to implement custom Dispose logic and call on this implementation.