Commands and Menus That Use Interop Assemblies
A VSPackage that implements menu and toolbar commands by using interop assemblies must:
Inform the Visual Studio integrated development environment (IDE) about the commands it supports and whether they are currently enabled.
Adhere to the rules (contract) for handling commands.
Explicitly implement command handling by using either the IOleCommandTarget or IVsUIHierarchy interface.
The following describes how to do these tasks.
In questa sezione
Determining Command Status By Using Interop Assemblies
Describes how a VSPackage notifies the IDE about which commands it supports and whether they are currently enabled.Command Contracts in Interop Assemblies
Provides a definition of the basic command contract used by all VSPackages implementing commands using interop assembliesImplementazione del comando
Provides an overview of how a VSPackage implements a command.Registering Interop Assembly Command Handlers
Describes the registry entries required to notify the IDE that a VSPackage provides a command handler.
Sezioni correlate
Disponibilità del comando
Describes criteria that are used by the IDE to determine which VSPackage commands are available and what object handles them.Come Vspackage aggiunge gli elementi dell'interfaccia utente dell'IDE
Provides details about how to create a UI that uses Visual Studio command support.Command Routing in VSPackages
An overview of the process used to relate an object with the correct command request.