Share via


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

참고 항목

참조

Projects 멤버

EnvDTE 네임스페이스

기타 리소스

프로젝트 및 솔루션 제어