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 中所列舉字串的實際目數的參考。

傳回

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

備註

如需 的詳細資訊 IEnumString::Next,請參閱 MSDN 連結庫。

適用於