OnDisconnection Method

IDTExtensibility2.OnDisconnection Method (ext_DisconnectMode, Array)

 

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

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

void OnDisconnection(
	ext_DisconnectMode RemoveMode,
	[InAttribute] ref Array custom
)

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.

Add-ins are deprecated. For more information, see FAQ: Converting Add-ins to VSPackage Extensions.

Return to top
Show:
© 2016 Microsoft