DTE2.ActiveSolutionProjects Eigenschaft

Definition

Ruft ein Array der derzeit ausgewählten Projekte ab.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)]
[get: System.Runtime.InteropServices.DispId(237)]
public object ActiveSolutionProjects { get; }
[<System.Runtime.InteropServices.DispId(237)>]
[<get: System.Runtime.InteropServices.DispId(237)>]
member this.ActiveSolutionProjects : obj
Public ReadOnly Property ActiveSolutionProjects As Object

Eigenschaftswert

Object

Ein Array der derzeit ausgewählten Projekte.An array of currently selected projects.

Implementiert

Attribute

Beispiele

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  

Gilt für: