IEnumMoniker.Next(Int32, IMoniker[], IntPtr) Method

Definition

Retrieves a specified number of items in the enumeration sequence.

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

Parameters

celt
Int32

The number of monikers to return in rgelt.

rgelt
IMoniker[]

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

pceltFetched
IntPtr

nativeint

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

Returns

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

Remarks

For more information, see IEnumMoniker::Next method.

Applies to