Partager via


DTE2.ActiveSolutionProjects Property

Definition

Gets an array of currently selected projects.

public:
 property System::Object ^ ActiveSolutionProjects { System::Object ^ get(); };
public:
 property Platform::Object ^ ActiveSolutionProjects { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(237)]
public object ActiveSolutionProjects { [System.Runtime.InteropServices.DispId(237)] get; }
[<System.Runtime.InteropServices.DispId(237)>]
[<get: System.Runtime.InteropServices.DispId(237)>]
member this.ActiveSolutionProjects : obj
Public ReadOnly Property ActiveSolutionProjects As Object

Property Value

An array of currently selected projects.

Implements

Attributes

Examples

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  

Applies to