IEnumConnectionPoints.Next(Int32, IConnectionPoint[], IntPtr) 方法

定義

擷取列舉型別序列中指定的項目數目。Retrieves a specified number of items in the enumeration sequence.

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 參考的數目。The number of IConnectionPoint references to return in rgelt.

rgelt
IConnectionPoint[]

這個方法傳回時,包含列舉連接的參考。When this method returns, contains a reference to the enumerated connections. 此參數傳遞時未經初始化。This parameter is passed uninitialized.

pceltFetched
IntPtr

這個方法傳回時,包含 rgelt 中實際列舉連接數目的參考。When this method returns, contains a reference to the actual number of connections enumerated in rgelt.

傳回

如果 S_OK 參數等於 pceltFetched 參數,則為 celt,否則為 S_FALSES_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

備註

如需 IEnumConnectionPoints::Next的詳細資訊,請參閱 MSDN Library。For more information about IEnumConnectionPoints::Next, see the MSDN Library.

適用於