The Life Cycle of an Add-in

Add-ins progress through a sequence of events every time they are loaded or unloaded in their application host. Each of these events is represented by a method defined on the IDTExtensibility2 interface. These methods are documented in Table 15.1.

Table 15.1 IDTExtensibility2 Methods

image

The diagrams in Figure 15.7 and Figure 15.8 show how these methods (which really represent events) fall onto the normal load and unload path for an add-in.

Figure 15.7 Load sequence of events.

image

Figure 15.8 Unload sequence of events.

If you ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.