Chapter 13: Extending Visual Studio 2010 | 379 |
Member
Purpose
OnAddInsUpdate | |
|
|
OnBeginShutdown | |
|
|
OnConnection | |
OnDisconnection | |
|
|
OnStartupComplete | VS has started up and then |
|
|
Table 13-1 The IDTExtensibility2 Interface
It’s like people from different countries trying to communicate, where they have a subject to discuss but need a common language to be able to understand each other; the common language would be the interface between the people.
The first interface to discuss is IDTExtensibility2, whose purpose is to let VS manage loading and unloading of the
The second interface that Connect implements is IDTCommandTarget. When building an
a user selects the menu item, the named command will execute and run your
Each of the methods of both the IDTExtensibility2 and IDCommandTarget interfaces are implemented by the provided Connect class. Listing
Member
Purpose
Exec | Called by VS to execute your |
|
|
QueryStatus | Called by VS to determine if the command should be enabled, |
| invisible, or supported. |
|
|