Share via


AddIn.OnShutdown Method (2007 System)

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

This member overrides EntryPointComponentBase.OnShutdown().

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

Syntax

'Declaration
Protected Overrides Sub OnShutdown
'Usage
Me.OnShutdown()
protected override void OnShutdown()
protected:
virtual void OnShutdown() override
protected override function 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 Visual Studio Tools for Office Project Events. For more information about the ThisAddIn class, see Programming Application-Level Add-Ins and AddIn Host Item.

.NET Framework Security

See Also

Reference

AddIn Class

AddIn Members

Microsoft.Office.Tools Namespace