Export (0) Print
Expand All
ID
Top
Expand Minimize

ActiveSolutionProjects Property

Visual Studio .NET 2003

Returns an array of currently selected projects.

[Visual Basic .NET]
Public ReadOnly Property ActiveSolutionProjects() As Object
[Visual Basic 6]
Property Get ActiveSolutionProjects() As Variant
[C++]
HRESULT __stdcall get_ActiveSolutionProjects(
   /* [out, retval] */ VARIANT* retVal
);
[C#]
public object ActiveSolutionProjects {get;}
[JScript .NET]
public function get ActiveSolutionProjects() : Object

Example

Sub ActiveSolutionProjectsExample()
  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

See Also

Applies To: DTE Object

Show:
© 2014 Microsoft