DataListDesigner.Dispose(Boolean) Method

Definition

Releases the unmanaged resources used by the DataListDesigner 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 disposing is true, the Dispose method releases all resources held by the managed objects that this DataListDesigner object references.

Notes to Inheritors

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

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

Applies to

See also