System.Windows.Forms.ColumnHeader.Dispose Method

Disposes of the resources (other than memory) used by the System.Windows.Forms.ColumnHeader.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
Documentation for this section has not yet been entered.

Remarks

Call ColumnHeader.Dispose(bool) when you are finished using the System.Windows.Forms.ColumnHeader. The ColumnHeader.Dispose(bool) method leaves the System.Windows.Forms.ColumnHeader in an unusable state. After calling ColumnHeader.Dispose(bool), you must release all references to the System.Windows.Forms.ColumnHeader so the memory it was occupying can be reclaimed by garbage collection.

Note:

Always call ColumnHeader.Dispose(bool) before you release your last reference to the System.Windows.Forms.ColumnHeader. Otherwise, the resources the System.Windows.Forms.ColumnHeader is using will not be freed until garbage collection calls the System.Windows.Forms.ColumnHeader object's destructor.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0