Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_Projects(
   /* [out, retval] */ Projects** retVal
);
[C#]
Projects Projects {get;}
[JScript .NET]
public function get Projects() : Projects

Return Value

Returns a Projects collection.

Example

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.
   MsgBox(soln.Projects.Count)
End Sub

See Also

Projects Collection | Project Object

Applies To: Solution Object | VCProjectEngine Object

Show:
© 2015 Microsoft