AddIn.ProgID Property

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

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

Syntax

'Declaration
ReadOnly Property ProgID As String
string ProgID { get; }
property String^ ProgID {
    String^ get ();
}
abstract ProgID : string with get
function get ProgID () : String

Property Value

Type: System.String
A string representing the ProgID.

Examples

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

.NET Framework Security

See Also

Reference

AddIn Interface

EnvDTE Namespace