Occurs when the add-in is about to be unloaded.
Assembly: Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)
Use the default event handler in the ThisAddIn class, instead of creating your own event handler for this event. The default event handler is named ThisAddIn_Shutdown.
In Outlook 2010, the event is not raised when Outlook exits. However, this event is raised when the user disables the add-in by using the COM Add-ins dialog box in Outlook.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.