Partager via


IVsSolution6.AddExistingProject(String, IVsHierarchy, IVsHierarchy) Method

Definition

Adds an existing project to the solution.

public:
 int AddExistingProject(System::String ^ szFullPath, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pParent, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppNewProj);
public int AddExistingProject (string szFullPath, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pParent, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppNewProj);
abstract member AddExistingProject : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * IVsHierarchy -> int
Public Function AddExistingProject (szFullPath As String, pParent As IVsHierarchy, ByRef ppNewProj As IVsHierarchy) As Integer

Parameters

szFullPath
String

The full path of the project.

pParent
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
IVsHierarchy

[out] The new IVsHierarchy element.

Returns

The HRESULT.

Applies to