共用方式為


_Solution.Projects 屬性

取得方案中目前專案的集合。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
ReadOnly Property Projects As Projects
Projects Projects { get; }
property Projects^ Projects {
    Projects^ get ();
}
abstract Projects : Projects
function get Projects () : Projects

屬性值

型別:EnvDTE.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

.NET Framework 安全性

請參閱

參考

_Solution 介面

EnvDTE 命名空間