IEnumConnectionPoints.Next(Int32, IConnectionPoint[], IntPtr) 方法

定义

检索枚举序列中指定数目的项。

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

参数

celt
Int32

要在 rgelt 中返回的 IConnectionPoint 引用的数目。

rgelt
IConnectionPoint[]

此方法返回时,包含对枚举连接的引用。 此参数未经初始化即被传递。

pceltFetched
IntPtr

nativeint

此方法返回时,包含对 rgelt 中枚举的连接的实际数目的引用。

返回

Int32

如果 pceltFetched 参数与 celt 参数相等,则为 S_OK;否则为 S_FALSE

注解

有关详细信息,请参阅 IEnumConnectionPoints::Next 方法

适用于