Compartir a través de


_DTE.ActiveSolutionProjects (Propiedad)

Obtiene una matriz de proyectos seleccionados actualmente.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

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

Valor de propiedad

Tipo: System.Object
Una matriz de proyectos seleccionados actualmente.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

_DTE Interfaz

EnvDTE (Espacio de nombres)