SolutionFolder::Parent Property

 

Gets the immediate parent object of a Find object.

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

property Project^ Parent {
	Project^ get();
}

Property Value

Type: EnvDTE::Project^

A DTE object.

The Parent property returns the immediate parent to the Find object.

This example creates a new solution folder and adds a project to it from an existing file. It then uses a message box to display all the project items in the solution folder, obtained through the Parent object. 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 need to 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: