Share via


VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated>.Next Method (UInt32, array<TComEnumerated , UInt32%)

Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by celt elements, so that subsequent calls return the subsequent elements.

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

Syntax

'Declaration
Public Function Next ( _
    celt As UInteger, _
    rgelt As TComEnumerated(), _
    <OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
public int Next(
    uint celt,
    TComEnumerated[] rgelt,
    out uint pceltFetched
)
public:
virtual int Next(
    unsigned int celt, 
    array<TComEnumerated>^ rgelt, 
    [OutAttribute] unsigned int% pceltFetched
) sealed
abstract Next : 
        celt:uint32 * 
        rgelt:'TComEnumerated[] * 
        pceltFetched:uint32 byref -> int  
override Next : 
        celt:uint32 * 
        rgelt:'TComEnumerated[] * 
        pceltFetched:uint32 byref -> int
public final function Next(
    celt : uint, 
    rgelt : TComEnumerated[], 
    pceltFetched : uint
) : int

Parameters

  • rgelt
    Type: array<TComEnumerated[]

    Enough storage to hold the number of elements specified by celt. This storage must be supplied by the caller. This parameter cannot be null.

  • pceltFetched
    Type: System.UInt32%

    Indicates the number of elements that were actually fetched. This number can be less than the number requested in celt.

Return Value

Type: System.Int32
S_OK if successful, or an error otherwise.

.NET Framework Security

See Also

Reference

VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated> Class

Next Overload

Microsoft.VisualStudio.Shell Namespace