Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an existing project to the solution.
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 AddExistingProject ( _
    szFullPath As String, _
    pParent As IVsHierarchy, _
    <OutAttribute> ByRef ppNewProj As IVsHierarchy _
) As Integer
int AddExistingProject(
    string szFullPath,
    IVsHierarchy pParent,
    out IVsHierarchy ppNewProj
)
int AddExistingProject(
    [InAttribute] String^ szFullPath, 
    [InAttribute] IVsHierarchy^ pParent, 
    [OutAttribute] IVsHierarchy^% ppNewProj
)
abstract AddExistingProject : 
        szFullPath:string * 
        pParent:IVsHierarchy * 
        ppNewProj:IVsHierarchy byref -> int
function AddExistingProject(
    szFullPath : String, 
    pParent : IVsHierarchy, 
    ppNewProj : IVsHierarchy
) : int
Parameters
- szFullPath 
 Type: String- The full path of the project. 
- pParent 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy- [optional] The parent IVsHierarchy element under which to create the new project. This can be the solution folder or any project that implements IVsParentProject3. 
- ppNewProj 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%- [out] The new IVsHierarchy element. 
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.