_Solution.Projects Property
Gets a collection of the projects currently in the solution.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property Projects As Projects
'Usage
Dim instance As _Solution
Dim value As Projects
value = instance.Projects
Projects Projects { get; }
property Projects^ Projects {
Projects^ get ();
}
function get Projects () : Projects
Property Value
Type: EnvDTE.Projects
A Projects collection.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.