_Solution.Projects 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 a collection of the projects currently in the solution.
public:
property EnvDTE::Projects ^ Projects { EnvDTE::Projects ^ get(); };
[System.Runtime.InteropServices.DispId(41)]
public EnvDTE.Projects Projects { [System.Runtime.InteropServices.DispId(41)] get; }
[<System.Runtime.InteropServices.DispId(41)>]
[<get: System.Runtime.InteropServices.DispId(41)>]
member this.Projects : EnvDTE.Projects
Public ReadOnly Property Projects As Projects
Property Value
A Projects collection.
- Attributes
Examples
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