IEnumVARIANT.Next(Int32, Object[], IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.