Component.Dispose Method ()
Releases all resources used by the Component.
Assembly: System (in System.dll)
Call Dispose when you are finished using the Component. The Dispose method leaves the Component in an unusable state. After calling Dispose, you must release all references to the Component so the garbage collector can reclaim the memory that the Component was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
.NET Framework
Available since 1.1
Available since 1.1