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 中枚举的字符串的实际数目的引用。

返回

如果 pceltFetched 参数与 celt 参数相等,则为 S_OK;否则为 S_FALSE

注解

有关详细信息,请参阅 IEnumString::Next 方法

适用于