ListView.Dispose(Boolean) Method

Definition

Releases the unmanaged resources used by the ListView 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)

Parameters

disposing
Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

Call the Dispose method when the component is no longer needed. This method removes the component from its container (if the component has a site) and triggers the dispose event.

Applies to