Επεξεργασία

Κοινή χρήση μέσω


IEnumVARIANT.Next(Int32, Object[], IntPtr) Method

Definition

Retrieves a specified number of items in the enumeration sequence.

public:
 int Next(int celt, cli::array <System::Object ^> ^ rgVar, IntPtr pceltFetched);
public int Next (int celt, object[] rgVar, IntPtr pceltFetched);
public int Next (int celt, object?[] rgVar, IntPtr pceltFetched);
abstract member Next : int * obj[] * nativeint -> int
Public Function Next (celt As Integer, rgVar As Object(), pceltFetched As IntPtr) As Integer

Parameters

celt
Int32

The number of elements to return in rgelt.

rgVar
Object[]

When this method returns, contains a reference to the enumerated elements. This parameter is passed uninitialized.

pceltFetched
IntPtr

nativeint

When this method returns, contains a reference to the actual number of elements enumerated in rgelt.

Returns

S_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

Remarks

For more information, see IEnumVARIANT::Next method.

Applies to