This documentation is archived and is not being maintained.

IVsProjectFlavorCfg.get_CfgType Method

Provides access to a configuration interfaces such as IVsBuildableProjectCfg2 or IVsDebuggableProjectCfg.

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

int get_CfgType(
	ref Guid iidCfg,
	out IntPtr ppCfg


Type: System.Guid
[in] Interface identifier of the ppCfg to access.
Type: System.IntPtr
[out, iid_is(iidCfg)] Pointer to the configuration interface identified by iidCfg.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell80.idl:

HRESULT IVsProjectFlavorCfg::get_CfgType(
   [in] REFIID iidCfg,
   [out, iid_is(iidCfg)] void **ppCfg

The base project delegates to the IVsProjectFlavorCfg.get_CfgType method implementation inside its implementation of get_CfgType. The same object also implements IInternalExtenderProvider to provide automation extender objects to extend configuration browse objects for property browsing UI and for automation properties collections.

The base project also delegates to get_CfgType method implementation inside its implementation of get_BuildableProjectCfg in order to enable a project subtype to override the build implementation. This is not a common practice since project subtypes do not generally override the build implementation.