Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a specified number of items in an enumeration sequence.
Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgelt As VSCOMPONENTSELECTORDATA(), _
    <OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
int Next(
    uint celt,
    VSCOMPONENTSELECTORDATA[] rgelt,
    out uint pceltFetched
)
int Next(
    [InAttribute] unsigned int celt, 
    [OutAttribute] array<VSCOMPONENTSELECTORDATA>^ rgelt, 
    [OutAttribute] unsigned int% pceltFetched
)
abstract Next : 
        celt:uint32 * 
        rgelt:VSCOMPONENTSELECTORDATA[] byref * 
        pceltFetched:uint32 byref -> int
function Next(
    celt : uint, 
    rgelt : VSCOMPONENTSELECTORDATA[], 
    pceltFetched : uint
) : int
Parameters
- celt 
 Type: UInt32- [in] Number of component elements being requested. 
- rgelt 
 Type: array<Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[]- [out] Array of size celt or larger for the return of components in the enumeration sequence. 
- pceltFetched 
 Type: UInt32%- [out] Pointer to the number of elements supplied in rgelt. The caller can pass in null if celt is one. 
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From compsvcspkg.idl:
HRESULT IEnumComponents::Next(
   [in] ULONG celt,
   [out, size_is(celt), length_is(*pceltFetched)] VSCOMPONENTSELECTORDATA* rgelt,
   [out] ULONG *pceltFetched
);
.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.