共用方式為


AddInBase.Startup Event

Definition

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

public:
 event EventHandler ^ Startup;
public event EventHandler Startup;
member this.Startup : EventHandler 
Public Custom Event Startup As EventHandler 

Event Type

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 about, see Events in Office Projects. For more information about the ThisAddIn class, see Programming VSTO Add-Ins.

Applies to