IEnumMoniker.Next(Int32, IMoniker[], IntPtr) 方法
定义
检索枚举序列中指定数目的项。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
参数
- celt
- Int32
要在 rgelt 中返回的名字对象的数目。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
此方法返回时,包含对在 rgelt 中枚举的名字对象的实际数目的引用。When this method returns, contains a reference to the actual number of monikers enumerated in rgelt.
返回
如果 pceltFetched 参数与 celt 参数相等,则为 S_OK;否则为 S_FALSE。S_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.
注解
有关详细信息,请参阅 IEnumMoniker:: Next 方法。For more information, see IEnumMoniker::Next method.