Share via


_DTE.ActiveSolutionProjects-Eigenschaft

Ruft ein Array der derzeit ausgewählten Projekte ab.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

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

Eigenschaftswert

Typ: Object
Ein Array der derzeit ausgewählten Projekte.

Beispiele

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

.NET Framework-Sicherheit

Siehe auch

Referenz

_DTE Schnittstelle

EnvDTE-Namespace