DTE2.ActiveSolutionProjects Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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