Common protected Dispose method for standard Dispose pattern. Called by IDisposable.Dispose() and the finalizer.
Syntax
'Declaration
Protected Overloads Overridable Sub Dispose( _
ByVal As Boolean _
)
'Usage
Dim instance As FormModel
Dim disposing As Boolean
instance.Dispose(disposing)
protected virtual void Dispose(
bool
)
protected: virtual void Dispose(
bool
)
protected:
virtual void Dispose(
bool
)
Parameters
- disposing
- Inidicates whether the caller was Dispose (true) or the finalizer (false).
See Also