SolutionFolder Interface

 

Solution folders are project containers that allow developers to better organize large applications.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

[GuidAttribute("F8F69788-267C-4408-8967-74F26108C438")]
public interface class SolutionFolder

NameDescription
System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyHidden

Sets or gets the hidden attribute of the solution.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a Find object.

NameDescription
System_CAPS_pubmethodAddFromFile(String^)

Adds an existing project to the solution folder.

System_CAPS_pubmethodAddFromTemplate(String^, String^, String^)

Adds a new project to the solution folder based on a project template.

System_CAPS_pubmethodAddSolutionFolder(String^)

Adds a solution folder to a ProjectItems collection.

In Visual Studio 2005, solutions can contain solution folders in addition to project folders. Solution folders are project containers that allow developers to better organize large applications.

The solution's Projects property returns a collection of Project objects. Each individual Project has a Kind property which can be set to vsProjectKindSolutionFolder. To get to the SolutionFolder interface, call Project.Object, and then cast the object returned to a SolutionFolder type.

This example creates a new solution folder and adds a project to it from an existing file. Before running this example, create a "Projects" folder off your main drive ("C:" in this example), and create a Visual C# class library project, named "ClassLibrary1" in that folder. You must also open a project in the Visual Studio integrated development environment (IDE) before running this example.

No code example is currently available or this language may not be supported.
Return to top
Show: