IVsProjectCfg2.get_OutputGroups Method
Returns an array of IVsOutputGroup pointers for the output groups of a configuration.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function get_OutputGroups ( _
celt As UInteger, _
<OutAttribute> rgpcfg As IVsOutputGroup(), _
<OutAttribute> pcActual As UInteger() _
) As Integer
'使用
Dim instance As IVsProjectCfg2
Dim celt As UInteger
Dim rgpcfg As IVsOutputGroup()
Dim pcActual As UInteger()
Dim returnValue As Integer
returnValue = instance.get_OutputGroups(celt, _
rgpcfg, pcActual)
int get_OutputGroups(
uint celt,
IVsOutputGroup[] rgpcfg,
uint[] pcActual
)
int get_OutputGroups(
[InAttribute] unsigned int celt,
[OutAttribute] array<IVsOutputGroup^>^ rgpcfg,
[OutAttribute] array<unsigned int>^ pcActual
)
function get_OutputGroups(
celt : uint,
rgpcfg : IVsOutputGroup[],
pcActual : uint[]
) : int
Parameters
celt
Type: System.UInt32[in] Requested number of output groups to be returned.
rgpcfg
Type: [][in, out, size_is(celt)] Pointer to an array of IVsOutputGroup interface pointers.
pcActual
Type: [][out, optional] Pointer to the actual number of output groups returned.
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_OutputGroups(
[in] ULONG celt,
[in, out, size_is(celt)] IVsOutputGroup *rgpcfg[],
[out, optional] ULONG *pcActual
);
If celt is zero and pcActual is not a null reference (Nothing in Visual Basic), the number of configuration objects is returned in *pcActual. If celt is not zero, rgpcfg must not be a null reference (Nothing in Visual Basic) or E_POINTER is returned.
Call this method twice, first with celt and prgpcfg set to zero and a null reference (Nothing in Visual Basic), respectively, to get the count, then second after allocating pcActual objects.
Permissions
- 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.