Share via


IVsProjectFlavorCfgProvider.CreateProjectFlavorCfg Method

Definition

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.

public:
 int CreateProjectFlavorCfg(Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pBaseProjectCfg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFlavorCfg ^ % ppFlavorCfg);
public:
 int CreateProjectFlavorCfg(Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pBaseProjectCfg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFlavorCfg ^ &  ppFlavorCfg);
int CreateProjectFlavorCfg(Microsoft::VisualStudio::Shell::Interop::IVsCfg const & pBaseProjectCfg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFlavorCfg const & & ppFlavorCfg);
public int CreateProjectFlavorCfg (Microsoft.VisualStudio.Shell.Interop.IVsCfg pBaseProjectCfg, out Microsoft.VisualStudio.Shell.Interop.IVsProjectFlavorCfg ppFlavorCfg);
abstract member CreateProjectFlavorCfg : Microsoft.VisualStudio.Shell.Interop.IVsCfg * IVsProjectFlavorCfg -> int
Public Function CreateProjectFlavorCfg (pBaseProjectCfg As IVsCfg, ByRef ppFlavorCfg As IVsProjectFlavorCfg) As Integer

Parameters

pBaseProjectCfg
IVsCfg

[in] Pointer to the IVsCfg object of the base project.

ppFlavorCfg
IVsProjectFlavorCfg

[out] The IVsProjectFlavorCfg object of the project subtype.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to