IEnumString.Next(Int32, String[], IntPtr) 方法

定義

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

public:
 int Next(int celt, cli::array <System::String ^> ^ rgelt, IntPtr pceltFetched);
public int Next(int celt, string[] rgelt, IntPtr pceltFetched);
abstract member Next : int * string[] * nativeint -> int
Public Function Next (celt As Integer, rgelt As String(), pceltFetched As IntPtr) As Integer

參數

celt
Int32

在 中返回 rgelt的字串數量。

rgelt
String[]

當此方法回傳時,包含對列舉字串的參考。 這個參數會未初始化傳遞。

pceltFetched
IntPtr

nativeint

當此方法回傳時,包含實際列舉字 rgelt串數量的參考。

傳回

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

備註

欲了解更多資訊,請參閱 IEnumString::Next 方法

適用於