Export (0) Print
Expand All

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)
   DTE.Solution.AddIns.Item(1).Remove()
End Sub

Show:
© 2015 Microsoft