This documentation is archived and is not being maintained.

ext_ConnectMode Enumeration

Informs the add-in about how it was loaded by the integrated development environment (IDE).

Namespace:  Extensibility
Assembly:  Extensibility (in Extensibility.dll)

public enum ext_ConnectMode

Member nameDescription
ext_cm_AfterStartupThe add-in was loaded after Visual Studio started.
ext_cm_CommandLineThe add-in was loaded from the command line.
ext_cm_ExternalThe add-in was loaded by an external client. (This setting is no longer used by Visual Studio.)
ext_cm_SolutionThe add-in was loaded with a solution.
ext_cm_StartupThe add-in was loaded when Visual Studio started.
ext_cm_UISetupThe add-in was loaded for user interface setup.

Add-ins can check the value of ext_ConnectMode to change its behavior. For example, the ext_cm_UISetup value indicates to the add-in that this is the first time it has been run. If so, the add-in can add its custom commands to the menu and toolbar. Otherwise, it can skip this step.