IVsSolution6::SetProjectParent Method (IVsHierarchy^, IVsHierarchy^)

 

Sets the parent of the project. The solution considers pProject to be a child (in a nested hierarchy) of pParent, and it does not enumerate it in the solution hierarchy. The pParent hierarchy is responsible for adding a visual representation of this project in Solution Explorer. pParent is expected to implement IVsParentProject3, otherwise this method does nothing.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime (in Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime.dll)

int SetProjectParent(
	IVsHierarchy^ pProject,
	IVsHierarchy^ pParent
)

Parameters

pProject
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The IVsHierarchy element of the project.

pParent
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The IVsHierarchy element of the project's parent.

Return Value

Type: System::Int32

The HRESULT.

Return to top
Show: