Proprietà _DTE.ActiveSolutionProjects

Ottiene una matrice contenente i progetti correntemente selezionati.

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

Sintassi

'Dichiarazione
ReadOnly Property ActiveSolutionProjects As Object
Object ActiveSolutionProjects { get; }
property Object^ ActiveSolutionProjects {
    Object^ get ();
}
abstract ActiveSolutionProjects : Object
function get ActiveSolutionProjects () : Object

Valore proprietà

Tipo: System.Object
Matrice di progetti correntemente selezionati.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

_DTE Interfaccia

Spazio dei nomi EnvDTE