Compartir a través de


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)

Syntax

'Declaration
Function get_CfgType ( _
    ByRef iidCfg As Guid, _
    <OutAttribute> ByRef ppCfg As IntPtr _
) As Integer
int get_CfgType(
    ref Guid iidCfg,
    out IntPtr ppCfg
)
int get_CfgType(
    [InAttribute] Guid% iidCfg, 
    [OutAttribute] IntPtr% ppCfg
)
abstract get_CfgType : 
        iidCfg:Guid byref * 
        ppCfg:IntPtr byref -> int
function get_CfgType(
    iidCfg : Guid, 
    ppCfg : IntPtr
) : int

Parameters

  • iidCfg
    Type: Guid%

    [in] Interface identifier of the ppCfg to access.

  • ppCfg
    Type: IntPtr%

    [out, iid_is(iidCfg)] Pointer to the configuration interface identified by iidCfg.

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IVsProjectFlavorCfg Interface

Microsoft.VisualStudio.Shell.Interop Namespace