Udostępnij za pośrednictwem


AddIn.OnStartup 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.OnStartup().

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

Syntax

'Declaration
Protected Overrides Sub OnStartup
'Usage
Me.OnStartup()
protected override void OnStartup()
protected:
virtual void OnStartup() override
protected override function 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 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