Partager via


DTE2.ActiveSolutionProjects, propriété

Obtient un tableau des projets actuellement sélectionnés.

Espace de noms :  EnvDTE80
Assembly :  EnvDTE80 (dans EnvDTE80.dll)

Syntaxe

'Déclaration
ReadOnly Property ActiveSolutionProjects As Object
Object ActiveSolutionProjects { get; }
property Object^ ActiveSolutionProjects {
    Object^ get ();
}
abstract ActiveSolutionProjects : Object with get
function get ActiveSolutionProjects () : Object

Valeur de propriété

Type : Object
Tableau des projets actuellement sélectionnés.

Exemples

Sub ActiveSolutionProjectsExample()
  Dim projs As System.Array
  Dim proj As Project
  projs = DTE2.ActiveSolutionProjects()
  If projs.Length > 0 Then
    proj = CType(projs.GetValue(0), EnvDTE.Project)
    MsgBox(proj.UniqueName)
  Else
    MsgBox(projs.Length)
  End If
End Sub

Sécurité .NET Framework

Voir aussi

Référence

DTE2 Interface

EnvDTE80, espace de noms