Compartilhar via


DialogContainerWithToolbar.Dispose(Boolean) Method

Definition

Explicitly called to release 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

Call Dispose when you are finished using the DialogContainerWithToolbar. The Dispose method leaves the DialogContainerWithToolbar in an unusable state. After you call Dispose, you must release all references to the DialogContainerWithToolbar so that the garbage collector can reclaim the memory that the DialogContainerWithToolbar was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note

Always call Dispose before you release your last reference to the DialogContainerWithToolbar. Otherwise, the resources it is using will not be freed until the garbage collector calls the DialogContainerWithToolbar object's Finalize method.

Applies to