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)


protected virtual void Dispose (
		bool disposing



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


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 members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also