IVsProjectFlavorCfgProvider::CreateProjectFlavorCfg Method (IVsCfg^, IVsProjectFlavorCfg^)
Allows the base project to ask the project subtype to create an IVsProjectFlavorCfg object corresponding to each one of its (project subtype's) configuration objects.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int CreateProjectFlavorCfg(
IVsCfg^ pBaseProjectCfg,
[OutAttribute] IVsProjectFlavorCfg^% ppFlavorCfg
)
Parameters
- pBaseProjectCfg
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsCfg^
[in] Pointer to the IVsCfg object of the base project.
- ppFlavorCfg
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsProjectFlavorCfg^
[out] The IVsProjectFlavorCfg object of the project subtype.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsProjectFlavorCfgProvider::CreateProjectFlavorCfg(
[in] IVsCfg *pBaseProjectCfg,
[out] IVsProjectFlavorCfg **ppFlavorCfg
);
The base project asks the project subtype to create an IVsProjectFlavorCfg object corresponding to each of its (project subtype's) configuration objects. The IVsProjectFlavorCfg objects can then, for example, implement IPersistXMLFragment to manage persistence into the project file. The base project system calls IPersistXMLFragment methods InitNew, Load and Save as appropriate.
The IVsProjectFlavorCfg object can hold and add a referenced pointer to the IVsCfg object of the base project.