IEnumMoniker.Next Method (Int32, IMoniker[], 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,
	IMoniker[] rgelt,
	IntPtr pceltFetched


Type: System.Int32

The number of monikers to return in rgelt.

Type: System.Runtime.InteropServices.ComTypes.IMoniker[]

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

Type: System.IntPtr

When this method returns, contains a reference to the actual number of monikers 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 IEnumMoniker::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