IEnumString.Next Method (Int32, String[], IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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,
	string[] rgelt,
	IntPtr pceltFetched
)

Parameters

celt
Type: System.Int32

The number of strings to return in rgelt.

rgelt
Type: System.String[]

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

pceltFetched
Type: System.IntPtr

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