_Solution.Projects _Solution.Projects _Solution.Projects Property

Definition

Gets a collection of the projects currently in the solution.

[System.Runtime.InteropServices.DispId(41)]
[get: System.Runtime.InteropServices.DispId(41)]
public EnvDTE.Projects Projects { get; }
member this.Projects : EnvDTE.Projects
Public ReadOnly Property Projects As Projects
Property Value

Examples

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

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

   ' List the number of projects.  
   MsgBox(soln.Projects.Count)  
End Sub  

Applies to