Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
Syntax
Visual Basic (Declaration) |
|
Protected Overloads Overridable Sub Dispose( _
ByVal disposing As Boolean _
) |
Visual Basic (Usage) |
Copy Code |
Dim instance As ChartUI
Dim disposing As Boolean
instance.Dispose(disposing)
|
Parameters
- disposing
- If disposing equals true, the method has been called directly or indirectly by a user's code.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also