UCOMIEnumConnectionPoints.Next(Int32, UCOMIConnectionPoint[], Int32) 方法

定义

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

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

参数

celt
Int32

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

rgelt
UCOMIConnectionPoint[]

成功返回时,是对所枚举的连接的引用。

pceltFetched
Int32

成功返回时,是对 rgelt 中枚举的实际数目的连接的引用。

返回

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

注解

有关 的详细信息 IEnumConnectionPoints::Next,请参阅 MSDN 库。

适用于