_Solution.Projects 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取解决方案中当前项目的集合。
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 集合。
- 属性
示例
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