Represents all of the projects of a given kind.
Assembly: EnvDTE (in EnvDTE.dll)
Gets a value indicating the number of objects in thecollection.
Gets the top-level extensibility object.
Gets a GUID String indicating the kind or type of the object.
Gets the immediate parent object of acollection.
Gets a collection of all properties that pertain to thecollection.
The DTE object.collection represents all projects of the same kind in the current instance of the integrated development environment (IDE). Typically, this collection is late-bound to the
Sub ProjectsExample() ' Before running, be sure you have one or more projects ' loaded in the solution. Dim prj As Project Dim prjs As Projects Dim msg As String ' Go through all of the projects in the solution and display ' their names and types. prjs = DTE.Solution.Projects For Each prj In prjs msg += "NAME: " & prj.Name & "TYPE: " & prj.Kind & vbCr Next MsgBox(msg) End Sub