_Solution.AddIns Property

 

Gets an AddIns collection, which contains all currently available add-ins associated with the solution.

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

AddIns AddIns { get; }

Property Value

Type: EnvDTE.AddIns

An AddIns collection.

Only registered Add-ins appear in the Addins collection, and they load and unload when the solution loads and unloads.

Sub AddinsExample()
   ' Open a solution before running this example.
   Dim soln As Solution

   ' Create a reference to the solution.
   soln = DTE.Solution

   ' List number of Add-ins.
   MsgBox(soln.AddIns.Count)
End Sub
Return to top
Show: