[]
Releases the unmanaged resources used by the ElementContainerControl and its child controls or elements and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Protected Overrides Sub Dispose(disposing As Boolean)
Type | Name | Description |
---|---|---|
bool | disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
Call Dispose(bool) when you are finished using the Control. The Dispose method leaves the Control in an unusable state. After calling Dispose(bool), you must release all references to the Control so the garbage collector can reclaim the memory that the Control was occupying.