IDTExtensibility2.OnDisconnection(ext_DisconnectMode, Array) IDTExtensibility2.OnDisconnection(ext_DisconnectMode, Array) IDTExtensibility2.OnDisconnection(ext_DisconnectMode, Array) IDTExtensibility2.OnDisconnection(ext_DisconnectMode, Array) Method

Definition

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

public:
 void OnDisconnection(Extensibility::ext_DisconnectMode RemoveMode, Array ^ % custom);
[System.Runtime.InteropServices.DispId(2)]
public void OnDisconnection (Extensibility.ext_DisconnectMode RemoveMode, ref Array custom);
abstract member OnDisconnection : Extensibility.ext_DisconnectMode *  -> unit
Public Sub OnDisconnection (RemoveMode As ext_DisconnectMode, ByRef custom As Array)
Parameters
RemoveMode
ext_DisconnectMode ext_DisconnectMode ext_DisconnectMode ext_DisconnectMode

An ext_DisconnectMode enumeration value that informs an add-in why it was unloaded.

custom
Array Array Array Array

An empty array that you can use to pass host-specific data for use after the add-in unloads.

Remarks

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

Applies to