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 中實際列舉連接數目的參考。

傳回

如果 pceltFetched 參數等於 celt 參數,則為 S_OK,否則為 S_FALSE

備註

如需詳細資訊,請參閱 IEnumConnectionPoints::Next 方法

適用於