Udostępnij za pośrednictwem


AddIn.Startup Event (2007 System)

Occurs when the add-in is loaded, after all the initialization code in the assembly has run.

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

Syntax

'Declaration
Public Event Startup As EventHandler
'Usage
Dim instance As AddIn 
Dim handler As EventHandler 

AddHandler instance.Startup, handler
public event EventHandler Startup
public:
 event EventHandler^ Startup {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
JScript does not support events.

Remarks

Use the default Startup event handler in the ThisAddIn class, instead of creating your own event handler for this event. The default Startup event handler is named ThisAddIn_Startup.

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