Compartilhar via


IVsProjectCfgProvider.GetCfgs Method

Returns one or more configuration objects.

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

Syntax

'Declaration
Function GetCfgs ( _
    celt As UInteger, _
    <OutAttribute> rgpcfg As IVsCfg(), _
    <OutAttribute> pcActual As UInteger(), _
    <OutAttribute> prgfFlags As UInteger() _
) As Integer
int GetCfgs(
    uint celt,
    IVsCfg[] rgpcfg,
    uint[] pcActual,
    uint[] prgfFlags
)
int GetCfgs(
    [InAttribute] unsigned int celt, 
    [OutAttribute] array<IVsCfg^>^ rgpcfg, 
    [OutAttribute] array<unsigned int>^ pcActual, 
    [OutAttribute] array<unsigned int>^ prgfFlags
)
abstract GetCfgs : 
        celt:uint32 * 
        rgpcfg:IVsCfg[] byref * 
        pcActual:uint32[] byref * 
        prgfFlags:uint32[] byref -> int
function GetCfgs(
    celt : uint, 
    rgpcfg : IVsCfg[], 
    pcActual : uint[], 
    prgfFlags : uint[]
) : int

Parameters

  • celt
    Type: UInt32

    [in] Number of configuration objects to be returned or zero, indicating a request for an unknown number of objects.

  • rgpcfg
    Type: array<Microsoft.VisualStudio.Shell.Interop.IVsCfg[]

    [in, out, size_is(celt)] On input, pointer to an interface array or nulla null reference (Nothing in Visual Basic). On output, this parameter points to an array of IVsCfg interfaces belonging to the requested configuration objects.

  • pcActual
    Type: array<UInt32[]

    [out, optional] Pointer to the number of configuration objects actually returned or nulla null reference (Nothing in Visual Basic), if this information is not necessary.

  • prgfFlags
    Type: array<UInt32[]

    [out, optional] Flags that specify settings for project configurations, or nulla null reference (Nothing in Visual Basic) if no additional flag settings are required. For valid prgrFlags values, see __VSCFGFLAGS.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProjectCfgProvider::GetCfgs(
   [in] ULONG celt,
   [in, out, size_is(celt)] IVsCfg *rgpcfg[],
   [out, optional] ULONG *pcActual,
   [out, optional] VSCFGFLAGS *prgfFlags
);

.NET Framework Security

See Also

Reference

IVsProjectCfgProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace