WinFormsControlAddInBase.Dispose Method (Boolean)

Releases the unmanaged resources used by the WinFormsControlAddInBase and optionally releases the managed resources.

Namespace: Microsoft.Dynamics.Framework.UI.Extensibility.WinForms
Assembly: Microsoft.Dynamics.Framework.UI.Extensibility (in Microsoft.Dynamics.Framework.UI.Extensibility.dll)

Usage

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
protected virtual void Dispose (
    bool disposing
)
protected:
virtual void Dispose (
    bool disposing
)
protected void Dispose (
    boolean disposing
)
protected function Dispose (
    disposing : boolean
)

Parameters

  • disposing
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

Dispose executes in two distinct scenarios:

  • If disposing is true, then the method is called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.

  • If disposing is false, the method is called at runtime and you should not reference other objects. Only unmanaged resources can be disposed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

WinFormsControlAddInBase Class
WinFormsControlAddInBase Members
Microsoft.Dynamics.Framework.UI.Extensibility.WinForms Namespace