DataGridViewHeaderCell.Dispose(Boolean) 方法

定义

释放由 DataGridViewHeaderCell 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the DataGridViewHeaderCell 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)

参数

disposing
Boolean

若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 falsetrue to release both managed and unmanaged resources; false to release only unmanaged resources.

适用于