語言

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

在 中返回CONNECTDATA的結構數量rgelt。

rgelt
CONNECTDATA[]

成功返回時,會提及列舉的連結。

pceltFetched
Int32

成功返回時,會參考實際列舉的 rgelt連接數。

傳回

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

備註

欲了解更多資訊 IEnumConnections::Next,請參閱MSDN圖書館。

適用於