IEnumConnections.Next(Int32, CONNECTDATA[], IntPtr) IEnumConnections.Next(Int32, CONNECTDATA[], IntPtr) IEnumConnections.Next(Int32, CONNECTDATA[], IntPtr) IEnumConnections.Next(Int32, CONNECTDATA[], IntPtr) Method

定义

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

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

参数

celt
Int32 Int32 Int32 Int32

要在 rgelt 中返回的 CONNECTDATA 结构的数目。The number of CONNECTDATA structures to return in rgelt.

rgelt
CONNECTDATA[]

此方法返回时,包含对枚举连接的引用。When this method returns, contains a reference to the enumerated connections. 此参数未经初始化即被传递。This parameter is passed uninitialized.

pceltFetched
IntPtr IntPtr IntPtr IntPtr

此方法返回时,包含对 rgelt 中枚举的连接的实际数目的引用。When this method returns, contains a reference to the actual number of connections enumerated in rgelt.

返回

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

注解

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

适用于