OnConnection Method
Collapse the table of content
Expand the table of content

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

 

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

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

void OnConnection(
	object Application,
	ext_ConnectMode ConnectMode,
	object AddInInst,
	[InAttribute] ref Array custom
)

Parameters

Application
Type: System.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
Type: Extensibility.ext_ConnectMode

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

AddInInst
Type: System.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
Type: System.Array

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

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

Return to top
Show:
© 2016 Microsoft