IVsSolution6.SetProjectParent Method

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)

Syntax

'Declaration
Function SetProjectParent ( _
    pProject As IVsHierarchy, _
    pParent As IVsHierarchy _
) As Integer
int SetProjectParent(
    IVsHierarchy pProject,
    IVsHierarchy pParent
)
int SetProjectParent(
    [InAttribute] IVsHierarchy^ pProject, 
    [InAttribute] IVsHierarchy^ pParent
)
abstract SetProjectParent : 
        pProject:IVsHierarchy * 
        pParent:IVsHierarchy -> int
function SetProjectParent(
    pProject : IVsHierarchy, 
    pParent : IVsHierarchy
) : int

Parameters

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

IVsSolution6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace