Projects-Schnittstelle

Aktualisiert: November 2007

Stellt sämtliche Projekte einer bestimmten Art dar.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

<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

Hinweise

Die Projects-Auflistung stellt alle Projekte derselben Art in der aktuellen Instanz der integrierten Entwicklungsumgebung (IDE) dar. Normalerweise handelt es sich dabei um eine Auflistung mit später Bindung an das DTE-Objekt.

Beispiele

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

Siehe auch

Referenz

Projects-Member

EnvDTE-Namespace

Weitere Ressourcen

Steuern von Projekten und Projektmappen