ProjectConfig.get_CfgType Method

Gets the type of the configuration. Provides access to a configuration interface such as [T:Microsoft.VisualStudio.Shell.Interop.][IVsBuildableProjectCfg] or [T:Microsoft.VisualStudio.Shell.Interop.][IVsDebuggableProjectCfg].

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function get_CfgType ( _
    ByRef iidCfg As Guid, _
    <OutAttribute> ByRef ppCfg As IntPtr _
) As Integer
'使用
Dim instance As ProjectConfig
Dim iidCfg As Guid
Dim ppCfg As IntPtr
Dim returnValue As Integer

returnValue = instance.get_CfgType(iidCfg, _
    ppCfg)
public virtual int get_CfgType(
    ref Guid iidCfg,
    out IntPtr ppCfg
)
public:
virtual int get_CfgType(
    Guid% iidCfg, 
    [OutAttribute] IntPtr% ppCfg
)
public function get_CfgType(
    iidCfg : Guid, 
    ppCfg : IntPtr
) : int

Parameters

  • iidCfg
    Type: System.Guid%

    [ref] The interface identifier of the configuration interface to access.

  • ppCfg
    Type: System.IntPtr%

    [out] Pointer to the configuration interface identified by iidCfg.

Return Value

Type: System.Int32

If iidCfg represents a supported interface, that is, either IVsDebuggableProjectCfg or IVsBuildableProjectCfg, returns S_OK. Otherwise returns E_NOINTERFACE.

Implements

IVsProjectCfg2.get_CfgType(Guid%, IntPtr%)

Permissions

See Also

Reference

ProjectConfig Class

ProjectConfig Members

Microsoft.VisualStudio.Package Namespace