IEnumVARIANT.Next Method (Int32, Object[], IntPtr)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Retrieves a specified number of items in the enumeration sequence.

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

int Next(
	int celt,
	object[] rgVar,
	IntPtr pceltFetched


Type: System.Int32

The number of elements to return in rgelt.

Type: System.Object[]

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

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