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
'Declaración
Function get_CfgType ( _
ByRef iidCfg As Guid, _
<OutAttribute> ByRef ppCfg As IntPtr _
) As Integer
'Uso
Dim instance As IVsProjectFlavorCfg
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 ppCfg 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 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
- 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.