IVsParentProject2::CreateNestedProject Method (UInt32, Guid, String^, String^, String^, UInt32, Guid, Guid, IntPtr)
Creates and adds a solution to a project.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int CreateNestedProject( unsigned int itemidLoc, [InAttribute] Guid% rguidProjectType, String^ lpszMoniker, String^ lpszLocation, String^ lpszName, unsigned int grfCreateFlags, [InAttribute] Guid% rguidProjectID, [InAttribute] Guid% iidProject, [OutAttribute] IntPtr% ppProject )
Parameters
- itemidLoc
-
Type:
System::UInt32
[in] The item id (VSITEMID) of the item to add.
- rguidProjectType
-
Type:
System::Guid
[in] The GUID of the project to add.
- lpszMoniker
-
Type:
System::String^
[in] String containing the moniker of the project item.
- lpszLocation
-
Type:
System::String^
[in] String containing the full path to the project.
- lpszName
-
Type:
System::String^
[in] String containing project name.
- grfCreateFlags
-
Type:
System::UInt32
[in] Bit flags specifying creation options for the project. Constructed using values from the __VSCREATEPROJFLAGS enumeration.
- rguidProjectID
-
Type:
System::Guid
[in] The IID of the interface to create. Use IID_IUnknown for a generic T:IUnknown interface. You can also use F:Microsoft.TeamFoundation.Common.VsConstants.IID_IVsHierarchy to get back a hierarchy interface.
- iidProject
-
Type:
System::Guid
[in] The item id (VSITEMID) of the item to add.
- ppProject
-
Type:
System::IntPtr
[out] Pointer to the created interface for the project.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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 );