Bewerken

Delen via


DataGridDesigner.Dispose(Boolean) Method

Definition

Releases the unmanaged resources used by the DataGridDesigner object 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 the managed and unmanaged resources; false to release only the unmanaged resources.

Remarks

When the disposing parameter is true, the Dispose method releases all the resources held by the managed objects that this DataGridDesigner object references.

Notes to Inheritors

The Dispose(Boolean) method can be called multiple times by other objects. When overriding it, be sure that you do not reference objects that have been disposed in an earlier call to Dispose(Boolean). For more information about how to implement this method, see Implementing a Dispose Method.

For more information about the Dispose() and Finalize() methods, see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.

Applies to

See also