ProgID Property

AddIn.ProgID Property

Gets the ProgID based on the add-in's registry entry.

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

string ProgID { get; }

Property Value

Type: System.String
A string representing the ProgID.

Sub ProgIDExample()
   ' Set object references.
   Dim addincoll As AddIns
   Dim addinobj As AddIn
   addincoll = DTE.AddIns
   addinobj = addincoll.Item(1)

   ' Activates a solution add-in so that it is available,
   ' then deactivates it.
   addinobj = DTE.Solution.AddIns.Add(addinobj.ProgID, _
     addinobj.Description, addinobj.Name, False)
End Sub

Community Additions

© 2016 Microsoft