IDTExtensibility2.OnConnection(Object, ext_ConnectMode, Object, Array) Method

Definition

Occurs whenever an add-in is loaded into Visual Studio.

public:
 void OnConnection(System::Object ^ Application, Extensibility::ext_ConnectMode ConnectMode, System::Object ^ AddInInst, Array ^ % custom);
[System.Runtime.InteropServices.DispId(1)]
public void OnConnection (object Application, Extensibility.ext_ConnectMode ConnectMode, object AddInInst, ref Array custom);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member OnConnection : obj * Extensibility.ext_ConnectMode * obj * Array -> unit
Public Sub OnConnection (Application As Object, ConnectMode As ext_ConnectMode, AddInInst As Object, ByRef custom As Array)

Parameters

Application
Object

A reference to an instance of the integrated development environment (IDE), DTE, which is the root object of the Visual Studio automation model.

ConnectMode
ext_ConnectMode

An ext_ConnectMode enumeration value that indicates the way the add-in was loaded into Visual Studio.

AddInInst
Object

An AddIn reference to the add-in's own instance. This is stored for later use, such as determining the parent collection for the add-in.

custom
Array

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

Attributes

Remarks

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

Applies to