This documentation is archived and is not being maintained.

Projects Property

Visual Studio .NET 2003

Returns a collection of the projects currently in the solution.

[Visual Basic .NET]
Public ReadOnly Property Projects() As Projects
[Visual Basic 6]
Property Get Projects() As Projects
HRESULT __stdcall get_Projects(
   /* [out, retval] */ Projects** retVal
Projects Projects {get;}
[JScript .NET]
public function get Projects() : Projects

Return Value

Returns a Projects collection.


Sub ProjectsExample()
   ' Open a solution before running this example.
   Dim soln As Solution

   ' Create a reference to the solution.
   soln = DTE.Solution

   ' List the number of projects.
End Sub

See Also

Projects Collection | Project Object

Applies To: Solution Object | VCProjectEngine Object