_Solution.Projects 属性

定义

获取解决方案中当前项目的集合。

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

属性值

Projects

一个 Projects 集合。

属性

示例

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  

适用于