Understanding the Life Cycle of an Add-in
When you create a new add-in, the wizard takes care of writing all the code that connects the add-in to the IDE. If you drill into your Solution Explorer, you'll see the Connect.vb or Connect.cs class file. This class is responsible for handling the interaction between your code and the instance of the IDE that the add-in is connecting to. Notice the namespaces referenced at the top of the class file:
Microsoft.Office.Core
Extensibility
System.Runtime.InteropServices
EnvDTE
These namespaces are unique to dealing with the extensibility objects in the IDE, and the InteropServices namespace handles the interaction with COM at runtime. All the IDE-specific objects are located in the EnvDTE namespace.
In the ...
Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days 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.