UCOMIEnumString.Next(Int32, String[], Int32) 方法

定義

檢索列舉序列中指定數量的項目。

public:
 int Next(int celt, cli::array <System::String ^> ^ rgelt, [Runtime::InteropServices::Out] int % pceltFetched);
public int Next(int celt, string[] rgelt, out int pceltFetched);
abstract member Next : int * string[] * int -> int
Public Function Next (celt As Integer, rgelt As String(), ByRef pceltFetched As Integer) As Integer

參數

celt
Int32

在 中返回 rgelt的字串數量。

rgelt
String[]

成功返回時,會參考列舉的字串。

pceltFetched
Int32

成功返回時,會參考 中 rgelt實際列舉的字串數量。

傳回

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

備註

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

適用於