Compartir a través de


Projects Interface

Definition

Represents all of the projects of a given kind.

public interface class Projects : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("E3EC0ADD-31B3-461F-8303-8A5E6931257A")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Projects : System.Collections.IEnumerable
[System.Runtime.InteropServices.Guid("E3EC0ADD-31B3-461F-8303-8A5E6931257A")]
public interface Projects : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("E3EC0ADD-31B3-461F-8303-8A5E6931257A")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type Projects = interface
    interface IEnumerable
[<System.Runtime.InteropServices.Guid("E3EC0ADD-31B3-461F-8303-8A5E6931257A")>]
type Projects = interface
    interface IEnumerable
Public Interface Projects
Implements IEnumerable
Attributes
Implements

Examples

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  

Remarks

The Projects collection represents all projects of the same kind in the current instance of the integrated development environment (IDE). Typically, this collection is late-bound to the DTE object.

Properties

Count

Gets a value indicating the number of objects in the Projects collection.

DTE

Gets the top-level extensibility object.

Kind

Gets a GUID String indicating the kind or type of the object.

Parent

Gets the immediate parent object of a Projects collection.

Properties

Gets a collection of all properties that pertain to the Projects collection.

Methods

GetEnumerator()

Gets an enumerator for items in the collection.

Item(Object)

Returns an indexed member of a Projects collection.

Applies to