Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Automation and Extensibility Reference
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)

Visual Basic (Declaration)
<GuidAttribute("289E9AF1-4973-11D1-AE81-00A0C90F26F4")> _
Public Enumeration ext_ConnectMode
Visual Basic (Usage)
Dim instance As ext_ConnectMode
C#
[GuidAttribute("289E9AF1-4973-11D1-AE81-00A0C90F26F4")] 
public enum ext_ConnectMode
C++
[GuidAttribute(L"289E9AF1-4973-11D1-AE81-00A0C90F26F4")] 
public enum class ext_ConnectMode
J#
/** @attribute GuidAttribute("289E9AF1-4973-11D1-AE81-00A0C90F26F4") */ 
public enum ext_ConnectMode
JScript
GuidAttribute("289E9AF1-4973-11D1-AE81-00A0C90F26F4") 
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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
ext_cm_UISetup is not available when using #import to import the msaddndr.* file      Craig Skibo - MSFT   |   Edit   |   Show History
If you are using a language such as Visual C++ to create an Add-in, and if you you the #import keyword to import the Extensibility type library, then the ext_cm_UISetup enumerated value will not be available to you and you will need to use the value 5 in its place.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker