Udostępnij za pośrednictwem


_DTE.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.

Attributes

Examples

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  

Applies to