Udostępnij za pośrednictwem


IVsSolution6.SetProjectParent(IVsHierarchy, IVsHierarchy) Method

Definition

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.

public:
 int SetProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pProject, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pParent);
public:
 int SetProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pProject, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pParent);
int SetProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pProject, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pParent);
public int SetProjectParent (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pProject, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pParent);
abstract member SetProjectParent : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> int
Public Function SetProjectParent (pProject As IVsHierarchy, pParent As IVsHierarchy) As Integer

Parameters

pProject
IVsHierarchy

The IVsHierarchy element of the project.

pParent
IVsHierarchy

The IVsHierarchy element of the project's parent.

Returns

The HRESULT.

Applies to