[]
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Public Sub Dispose()
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
Protected Overridable Sub Dispose(disposing As Boolean)
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |