Export (0) Print
Expand All
ID
Top
Expand Minimize

ProgID Property

Visual Studio .NET 2003

Returns the ProgID based on the Add-in's registry entry.

[Visual Basic .NET]
Public ReadOnly Property ProgID() As String
[Visual Basic 6]
Property Get ProgID() As String
[C++]
HRESULT __stdcall get_ProgID(
   /* [out, retval] */ BSTR* retVal
);
[C#]
string ProgID {get;}
[JScript .NET]
public function get ProgID() : String

Example

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

See Also

Applies To: AddIn Object

Show:
© 2014 Microsoft