IVsCreateAggregateProject.CreateAggregateProject Method
This method is implemented by the environment to create an aggregate project, which in turn creates a system of aggregate vsiptecflavors.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Déclaration
Function CreateAggregateProject ( _
pszProjectTypeGuids As String, _
pszFilename As String, _
pszLocation As String, _
pszName As String, _
grfCreateFlags As UInteger, _
ByRef iidProject As Guid, _
<OutAttribute> ByRef ppvProject As IntPtr _
) As Integer
'Utilisation
Dim instance As IVsCreateAggregateProject
Dim pszProjectTypeGuids As String
Dim pszFilename As String
Dim pszLocation As String
Dim pszName As String
Dim grfCreateFlags As UInteger
Dim iidProject As Guid
Dim ppvProject As IntPtr
Dim returnValue As Integer
returnValue = instance.CreateAggregateProject(pszProjectTypeGuids, _
pszFilename, pszLocation, pszName, _
grfCreateFlags, iidProject, ppvProject)
int CreateAggregateProject(
string pszProjectTypeGuids,
string pszFilename,
string pszLocation,
string pszName,
uint grfCreateFlags,
ref Guid iidProject,
out IntPtr ppvProject
)
int CreateAggregateProject(
[InAttribute] String^ pszProjectTypeGuids,
[InAttribute] String^ pszFilename,
[InAttribute] String^ pszLocation,
[InAttribute] String^ pszName,
[InAttribute] unsigned int grfCreateFlags,
[InAttribute] Guid% iidProject,
[OutAttribute] IntPtr% ppvProject
)
function CreateAggregateProject(
pszProjectTypeGuids : String,
pszFilename : String,
pszLocation : String,
pszName : String,
grfCreateFlags : uint,
iidProject : Guid,
ppvProject : IntPtr
) : int
Parameters
pszProjectTypeGuids
Type: System.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
Type: System.String[in] Pointer to a null-terminated string containing the project filename.
pszLocation
Type: System.String[in] Pointer to the path specifying the location for the new aggregate project.
pszName
Type: System.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 nulla null reference (Nothing in Visual Basic).
grfCreateFlags
Type: System.UInt32[in] Controls how a project is created or opened. Values are taken from __VSCREATEPROJFLAGS and __VSCREATEPROJFLAGS2.
iidProject
Type: System.Guid%[in] Interface identifier of the returned ppvProject. This value can be iid_NULL to specify no return
ppvProject
Type: System.IntPtr%[out, iid_is(iidProject)] Pointer to the newly created aggregated project.
Return Value
Type: System.Int32
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
);
Permissions
- 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.
See Also
Reference
IVsCreateAggregateProject Interface