Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ext_DisconnectMode Enumeration

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

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

[GuidAttribute("289E9AF2-4973-11D1-AE81-00A0C90F26F4")] 
public enum ext_DisconnectMode
/** @attribute GuidAttribute("289E9AF2-4973-11D1-AE81-00A0C90F26F4") */ 
public enum ext_DisconnectMode
GuidAttribute("289E9AF2-4973-11D1-AE81-00A0C90F26F4") 
public enum ext_DisconnectMode

 Member nameDescription
ext_dm_HostShutdownThe add-in was unloaded when Visual Studio was shut down. 
ext_dm_SolutionClosedThe add-in was unloaded when the solution was closed. 
ext_dm_UISetupCompleteThe add-in was unloaded after the user interface was set up. 
ext_dm_UserClosedThe add-in was unloaded while Visual Studio was running. 

ext_DisconnectMode is similar to ext_ConnectMode in that it allows an add-in to dynamically alter its behavior based on the current circumstances. In this case, how it was unloaded from Visual Studio.

Community Additions

ADD
Show:
© 2015 Microsoft