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.

public:
 EnvDTE::AddIn ^ Add(System::String ^ ProgID, System::String ^ Description, System::String ^ Name, bool Connected);
public:
 EnvDTE::AddIn ^ Add(Platform::String ^ ProgID, Platform::String ^ Description, Platform::String ^ Name, bool Connected);
EnvDTE::AddIn Add(std::wstring const & ProgID, std::wstring const & Description, std::wstring const & Name, bool Connected);
[System.Runtime.InteropServices.DispId(102)]
public EnvDTE.AddIn Add (string ProgID, string Description, string Name, bool Connected);
[<System.Runtime.InteropServices.DispId(102)>]
abstract member Add : string * string * string * bool -> EnvDTE.AddIn
Public Function Add (ProgID As String, Description As String, Name As String, Connected As Boolean) As AddIn

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.

Attributes

Remarks

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

Applies to