Control. Dispose(Boolean) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
protected: override void Dispose(bool disposing);
protected override void Dispose (bool disposing);
override this.Dispose : bool -> unit
Protected Overrides Sub Dispose (disposing As Boolean)
true to release both managed and unmanaged resources;
false to release only unmanaged resources.