IEnumVARIANT::Next Method (Int32, array<Object^>^, IntPtr)

 

Retrieves a specified number of items in the enumeration sequence.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

int Next(
	int celt,
	array<Object^>^ rgVar,
	IntPtr pceltFetched
)

Parameters

celt
Type: System::Int32

The number of elements to return in rgelt.

rgVar
Type: array<System::Object^>^

When this method returns, contains a reference to the enumerated elements. This parameter is passed uninitialized.

pceltFetched
Type: System::IntPtr

When this method returns, contains a reference to the actual number of elements enumerated in rgelt.

Return Value

Type: System::Int32

S_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

For more information about IEnumVARIANT::Next, see the MSDN Library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: