Compartilhar via


Propriedade DTE2.ActiveSolutionProjects

Obtém uma matriz dos projetos selecionados no momento.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (em EnvDTE80.dll)

Sintaxe

'Declaração
ReadOnly Property ActiveSolutionProjects As Object
Object ActiveSolutionProjects { get; }
property Object^ ActiveSolutionProjects {
    Object^ get ();
}
abstract ActiveSolutionProjects : Object with get
function get ActiveSolutionProjects () : Object

Valor de propriedade

Tipo: Object
Uma matriz dos projetos selecionados no momento.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

DTE2 Interface

Namespace EnvDTE80