Projects 介面
更新:2007 年 11 月
代表指定類型的所有專案。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
<GuidAttribute("E3EC0ADD-31B3-461F-8303-8A5E6931257A")> _
Public Interface Projects _
Implements IEnumerable
Dim instance As Projects
[GuidAttribute("E3EC0ADD-31B3-461F-8303-8A5E6931257A")]
public interface Projects : IEnumerable
[GuidAttribute(L"E3EC0ADD-31B3-461F-8303-8A5E6931257A")]
public interface class Projects : IEnumerable
public interface Projects extends IEnumerable
備註
Projects 集合代表整合式開發環境 (IDE) 目前的執行個體中,同一類型的所有專案。這個集合通常是晚期繫結至 DTE 物件。
範例
Sub ProjectsExample()
' Before running, be sure you have one or more projects
' loaded in the solution.
Dim prj As Project
Dim prjs As Projects
Dim msg As String
' Go through all of the projects in the solution and display
' their names and types.
prjs = DTE.Solution.Projects
For Each prj In prjs
msg += "NAME: " & prj.Name & "TYPE: " & prj.Kind & vbCr
Next
MsgBox(msg)
End Sub