Partilhar via


AddInBase.OnStartup 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 OnStartup
protected virtual void OnStartup()

Remarks

To run code when the add-in is loaded, add code to the ThisAddIn_Startup method in the ThisAddIn class. This method is a default event handler for the Startup 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