Partager via


IVsProjectCfg2.get_CfgType Method

Provides access to a configuration interface such as IVsBuildableProjectCfg or IVsDebuggableProjectCfg.

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

Syntax

'Déclaration
Function get_CfgType ( _
    ByRef iidCfg As Guid, _
    <OutAttribute> ByRef ppCfg As IntPtr _
) As Integer
'Utilisation
Dim instance As IVsProjectCfg2
Dim iidCfg As Guid
Dim ppCfg As IntPtr
Dim returnValue As Integer

returnValue = instance.get_CfgType(iidCfg, _
    ppCfg)
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: System.Guid%
    [in] Interface identifier of the configuration interface to access.
  • ppCfg
    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.

Remarks

COM Signature

From vsshell.idl:

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

The environment calls this method to retrieve a pointer to the configuration interface implemented on an object separate from the object supported by IVsProjectCfg2. The separate object will be used to control and launch the build, deploy, or debug process, usually on its own thread.

.NET Framework Security

See Also

Reference

IVsProjectCfg2 Interface

IVsProjectCfg2 Members

Microsoft.VisualStudio.Shell.Interop Namespace