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

Definition

Retrieves a specified number of items in the enumeration sequence.

public:
 int Next(int celt, cli::array <System::String ^> ^ rgelt, IntPtr pceltFetched);
public int Next (int celt, string[] rgelt, IntPtr pceltFetched);
abstract member Next : int * string[] * nativeint -> int
Public Function Next (celt As Integer, rgelt As String(), pceltFetched As IntPtr) As Integer

Parameters

celt
Int32

The number of strings to return in rgelt.

rgelt
String[]

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

pceltFetched
IntPtr

nativeint

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

Returns

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

Remarks

For more information, see IEnumString::Next method.

Applies to