Condividi tramite


AddInBase.OnShutdown Method

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)

Syntax

'Declaration
Protected Overridable Sub OnShutdown
protected virtual void OnShutdown()

Remarks

To run code just before the add-in is unloaded, add code to the ThisAddIn_Shutdown method in the ThisAddIn class. This method is a default event handler for the Shutdown event. For more information, see Events in Office Projects. For more information about the ThisAddIn class, see Programming Application-Level Add-Ins.

.NET Framework Security

See Also

Reference

AddInBase Class

Microsoft.Office.Tools Namespace