Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnDisconnection Method

IDTExtensibility2.OnDisconnection Method

Occurs whenever an add-in is unloaded from Visual Studio.

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

function OnDisconnection(
	RemoveMode : ext_DisconnectMode, 
	custom : Array
)

Parameters

RemoveMode
Type: Extensibility.ext_DisconnectMode
An ext_DisconnectMode enumeration value that informs an add-in why it was unloaded.
custom
Type: System.Array%
An empty array that you can use to pass host-specific data for use after the add-in unloads.

OnDisconnection, which is similar to OnBeginShutdown, occurs whenever the add-in is unloaded, but the integrated development environment (IDE) remains running. (OnBeginShutdown occurs whenever the IDE is shut down, which necessarily unloads add-ins that are running.)

No code example is currently available or this language may not be supported.

Community Additions

ADD
Show:
© 2015 Microsoft