Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy element of the project.
pParent
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy element of the project's parent.
Return Value
Type: Int32
The HRESULT.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.