UCOMIEnumMoniker.Next(Int32, UCOMIMoniker[], Int32) 方法

定义

检索枚举序列中指定数目的项。Retrieves a specified number of items in the enumeration sequence.

public:
 int Next(int celt, cli::array <System::Runtime::InteropServices::UCOMIMoniker ^> ^ rgelt, [Runtime::InteropServices::Out] int % pceltFetched);
public int Next (int celt, System.Runtime.InteropServices.UCOMIMoniker[] rgelt, out int pceltFetched);
abstract member Next : int * System.Runtime.InteropServices.UCOMIMoniker[] * int -> int
Public Function Next (celt As Integer, rgelt As UCOMIMoniker(), ByRef pceltFetched As Integer) As Integer

参数

celt
Int32

要在 rgelt 中返回的名字对象的数目。The number of monikers to return in rgelt.

rgelt
UCOMIMoniker[]

成功返回时,是对枚举名字对象的引用。On successful return, a reference to the enumerated monikers.

pceltFetched
Int32

成功返回时,是对在 rgelt 中枚举的名字对象的实际数目的引用。On successful return, a reference to the actual number of monikers enumerated in rgelt.

返回

如果 pceltFetched 参数与 celt 参数相等,则为 S_OK;否则为 S_FALSES_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

注解

有关 IEnumMoniker::Next 的详细信息,请参阅 MSDN Library。For more information about IEnumMoniker::Next, see the MSDN Library.

适用于