共用方式為


_Solution.Projects Property

Definition

Gets a collection of the projects currently in the solution.

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

Property Value

A Projects collection.

Attributes

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