AddIns.Add(String, String, String, Boolean) Method

Definition

Adds an add-in to the collection of add-ins loaded when a particular solution loads. It fails if the collection is the DTE.AddIns collection.

[System.Runtime.InteropServices.DispId(102)]
public EnvDTE.AddIn Add (string ProgID, string Description, string Name, bool Connected);
Parameters
ProgID
String

Required. The ProgID of the add-in to add to the collection.

Description
String

Required. A description for the add-in to add to the collection.

Name
String

Required. The name of the add-in to add to the collection.

Connected
Boolean

Required. Indicates whether the add-in is currently loaded.

Returns

An AddIn object.

Remarks

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

Applies to