IEnumComponents::Next Method (UInt32, array<VSCOMPONENTSELECTORDATA>^, UInt32)

 

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)

int Next(
	unsigned int celt,
	array<VSCOMPONENTSELECTORDATA>^ rgelt,
	[OutAttribute] unsigned int% pceltFetched
)

Parameters

celt
Type: System::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: System::UInt32

[out] Pointer to the number of elements supplied in rgelt. The caller can pass in null if celt is one.

Return Value

Type: System::Int32

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

From compsvcspkg.idl:

HRESULT IEnumComponents::Next(
   [in] ULONG celt,
   [out, size_is(celt), length_is(*pceltFetched)] VSCOMPONENTSELECTORDATA* rgelt,
   [out] ULONG *pceltFetched
);
Return to top
Show: