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

在 中要回傳IConnectionPoint的參考數量rgelt

rgelt
IConnectionPoint[]

當此方法回傳時,包含對列舉連接的參考。 這個參數會未初始化傳遞。

pceltFetched
IntPtr

nativeint

當此方法回傳時,包含對實際在中 rgelt枚舉的連接數量的參考。

傳回

S_OK若參數pceltFetched等於參數;celt否則,。 S_FALSE

備註

更多資訊請參閱 IEnumConnectionPoints::Next 方法

適用於