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.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
virtual int Next(
	unsigned int celt,
	array<TComEnumerated>^ rgelt,
	[OutAttribute] unsigned int% pceltFetched
) sealed

Parameters

celt
Type: System::UInt32

Number of requested elements.

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.

Return to top
Show: