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