Partager via


_DTE.ActiveSolutionProjects, propriété

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

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

Syntaxe

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

Valeur de propriété

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

Exemples

Sub ActiveSolutionProjectsExample()
  ' Returns the name of the currently selected project in the solution.
  Dim projs As System.Array
  Dim proj As Project
  projs = DTE.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

_DTE Interface

EnvDTE, espace de noms