Share via


DialogPage.Dispose(Boolean) Method

Definition

Releases the unmanaged resources that are used by a dialog page class and optionally releases the managed resources; the parent class, Component supports unmanaged resources.

protected:
 override void Dispose(bool disposing);
protected:
 override void Dispose(bool disposing);
 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

When the disposing parameter is true, this method releases all resources that are held by the managed objects that an instance of a given dialog page class references.

After operating on DialogPage, the implementation calls Dispose on its base class.

Note

A Dispose method can be called multiple times by other objects. When you override Dispose, be careful not to reference objects that have been previously disposed of in an earlier call. For more information about how to implement Dispose, see Implementing a Dispose Method.

Applies to