Compartir a través de


IVsParentProject2.CreateNestedProject Method

Definition

Creates and adds a solution to a project.

public:
 int CreateNestedProject(System::UInt32 itemidLoc, Guid % rguidProjectType, System::String ^ lpszMoniker, System::String ^ lpszLocation, System::String ^ lpszName, System::UInt32 grfCreateFlags, Guid % rguidProjectID, Guid % iidProject, [Runtime::InteropServices::Out] IntPtr % ppProject);
public int CreateNestedProject (uint itemidLoc, ref Guid rguidProjectType, string lpszMoniker, string lpszLocation, string lpszName, uint grfCreateFlags, ref Guid rguidProjectID, ref Guid iidProject, out IntPtr ppProject);
abstract member CreateNestedProject : uint32 * Guid * string * string * string * uint32 * Guid * Guid * nativeint -> int
Public Function CreateNestedProject (itemidLoc As UInteger, ByRef rguidProjectType As Guid, lpszMoniker As String, lpszLocation As String, lpszName As String, grfCreateFlags As UInteger, ByRef rguidProjectID As Guid, ByRef iidProject As Guid, ByRef ppProject As IntPtr) As Integer

Parameters

itemidLoc
UInt32

[in] The item id (VSITEMID) of the item to add.

rguidProjectType
Guid

[in] The GUID of the project to add.

lpszMoniker
String

[in] String containing the moniker of the project item.

lpszLocation
String

[in] String containing the full path to the project.

lpszName
String

[in] String containing project name.

grfCreateFlags
UInt32

[in] Bit flags specifying creation options for the project. Constructed using values from the __VSCREATEPROJFLAGS enumeration.

rguidProjectID
Guid

[in] The IID of the interface to create. Use IID_IUnknown for a generic T:IUnknown interface. You can also use Microsoft.TeamFoundation.Common.VsConstants.IID_IVsHierarchy to get back a hierarchy interface.

iidProject
Guid

[in] The item id (VSITEMID) of the item to add.

ppProject
IntPtr

nativeint

[out] Pointer to the created interface for the project.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsParentProject2::CreateNestedProject(  
   [in] VSITEMID itemidLoc,   
   [in] REFGUID rguidProjectType,   
   [in] LPCOLESTR lpszMoniker,   
   [in] LPCOLESTR lpszLocation,   
   [in] LPCOLESTR lpszName,   
   [in] VSCREATEPROJFLAGS grfCreateFlags,   
   [in] REFIID iidProject,   
   [out, iid_is(iidProject)] void **ppProject  
);  

Applies to