Compartir a través de


IVsCreateAggregateProject.CreateAggregateProject Method

Definition

This method is implemented by the environment to create an aggregate project, which in turn creates a system of aggregate vsiptecflavors.

public:
 int CreateAggregateProject(System::String ^ pszProjectTypeGuids, System::String ^ pszFilename, System::String ^ pszLocation, System::String ^ pszName, System::UInt32 grfCreateFlags, Guid % iidProject, [Runtime::InteropServices::Out] IntPtr % ppvProject);
public int CreateAggregateProject (string pszProjectTypeGuids, string pszFilename, string pszLocation, string pszName, uint grfCreateFlags, ref Guid iidProject, out IntPtr ppvProject);
abstract member CreateAggregateProject : string * string * string * string * uint32 * Guid * nativeint -> int
Public Function CreateAggregateProject (pszProjectTypeGuids As String, pszFilename As String, pszLocation As String, pszName As String, grfCreateFlags As UInteger, ByRef iidProject As Guid, ByRef ppvProject As IntPtr) As Integer

Parameters

pszProjectTypeGuids
String

[in] List of GUIDs in a string that specifies all the project types to aggregate together to create a single project. This is an ordered list from the outer-most vsiptecflavors to the inner-most vsiptecflavors.

pszFilename
String

[in] Pointer to a null-terminated string containing the project filename.

pszLocation
String

[in] Pointer to the path specifying the location for the new aggregate project.

pszName
String

[in] Pointer to the new aggregate project name. This parameter is used only when CPF_CLONEFILE is specified for the grfCreateFlags parameter; otherwise it is null.

grfCreateFlags
UInt32

[in] Controls how a project is created or opened. Values are taken from __VSCREATEPROJFLAGS and __VSCREATEPROJFLAGS2.

iidProject
Guid

[in] Interface identifier of the returned ppvProject. This value can be iid_NULL to specify no return

ppvProject
IntPtr

nativeint

[out, iid_is(iidProject)] Pointer to the newly created aggregated 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 IVsCreateAggregateProject::CreateAggregateProject(  
   [in] LPCOLESTR pszProjectTypeGuids,  
   [in] LPCOLESTR pszFilename,  
   [in] LPCOLESTR pszLocation,  
   [in] LPCOLESTR pszName,  
   [in] VSCREATEPROJFLAGS grfCreateFlags,  
   [in] REFIID iidProject,  
   [out, iid_is(iidProject)] void **ppvProject  
);  

Applies to