UCOMIEnumConnections.Next(Int32, CONNECTDATA[], Int32) 方法

定义

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

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

参数

celt
Int32

要在 rgelt 中返回的 CONNECTDATA 结构的数目。

rgelt
CONNECTDATA[]

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

pceltFetched
Int32

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

返回

Int32

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

注解

有关的详细信息 IEnumConnections::Next ,请参阅 MSDN library。

适用于