IVsProjectFlavorCfgProvider.CreateProjectFlavorCfg Method

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.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function CreateProjectFlavorCfg ( _
    pBaseProjectCfg As IVsCfg, _
    <OutAttribute> ByRef ppFlavorCfg As IVsProjectFlavorCfg _
) As Integer
int CreateProjectFlavorCfg(
    IVsCfg pBaseProjectCfg,
    out IVsProjectFlavorCfg ppFlavorCfg
)
int CreateProjectFlavorCfg(
    [InAttribute] IVsCfg^ pBaseProjectCfg, 
    [OutAttribute] IVsProjectFlavorCfg^% ppFlavorCfg
)
abstract CreateProjectFlavorCfg : 
        pBaseProjectCfg:IVsCfg * 
        ppFlavorCfg:IVsProjectFlavorCfg byref -> int 
function CreateProjectFlavorCfg(
    pBaseProjectCfg : IVsCfg, 
    ppFlavorCfg : IVsProjectFlavorCfg
) : int

Parameters

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 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.

.NET Framework Security

See Also

Reference

IVsProjectFlavorCfgProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace