Partager via


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);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member OnDisconnection : Extensibility.ext_DisconnectMode * Array -> unit
Public Sub OnDisconnection (RemoveMode As ext_DisconnectMode, ByRef custom As Array)

Parameters

RemoveMode
ext_DisconnectMode

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

custom
Array

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

Attributes

Remarks

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

Applies to