Share via


Interfaccia Projects

Aggiornamento: novembre 2007

Rappresenta tutti i progetti di un determinato tipo.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

<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

Note

L'insieme Projects rappresenta tutti i progetti dello stesso tipo nell'istanza corrente dell'ambiente di sviluppo integrato (IDE). Generalmente per questo insieme è prevista l'associazione tardiva all'oggetto DTE.

Esempi

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

Vedere anche

Riferimenti

Membri Projects

Spazio dei nomi EnvDTE

Altre risorse

Controllo di progetti e soluzioni