IVsCreateAggregateProject.CreateAggregateProject(String, String, String, String, UInt32, Guid, IntPtr) Méthode

Définition

Cette méthode est implémentée par l'environnement pour créer un projet d'agrégation, qui crée ensuite un système de vsiptecflavors d'agrégation.

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

Paramètres

pszProjectTypeGuids
String

[in] Liste des GUID dans une chaîne qui spécifie tous les types de projet à regrouper pour créer un projet unique. Il s'agit d'une liste triée à partir du vsiptecflavors extérieur vers le vsiptecflavors le plus profond.

pszFilename
String

[in] Pointeur vers une chaîne se terminant par null et contenant le nom de fichier du projet.

pszLocation
String

[in] Pointeur vers le chemin d'accès spécifiant l'emplacement du nouveau projet d'agrégation.

pszName
String

[in] Pointeur vers le nouveau nom du projet d'agrégation. Ce paramètre est utilisé uniquement lorsque CPF_CLONEFILE est spécifié pour le grfCreateFlags paramètre ; sinon, null .

grfCreateFlags
UInt32

[in] Contrôle le mode de création ou d'ouverture d'un projet. Les valeurs proviennent de __VSCREATEPROJFLAGS et __VSCREATEPROJFLAGS2.

iidProject
Guid

dans Identificateur d’interface du retourné ppvProject . Cette valeur peut être iid_NULL pour ne spécifier aucun retour

ppvProject
IntPtr

[out, iid_is(iidProject)] Pointeur vers le nouveau projet agrégé.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de 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  
);  

S’applique à