VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>.Next 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.
Overloads
Next(UInt32, TComEnumerated[], UInt32) |
Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by |
Next(UInt32, TComEnumerated[], UInt32[]) |
Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by |
Next(UInt32, TComEnumerated[], UInt32)
Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by celt
elements, so that subsequent calls return the subsequent elements.
public:
virtual int Next(System::UInt32 celt, cli::array <TComEnumerated> ^ rgelt, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
public int Next (uint celt, TComEnumerated[] rgelt, out uint pceltFetched);
abstract member Next : uint32 * 'ComEnumerated[] * uint32 -> int
override this.Next : uint32 * 'ComEnumerated[] * uint32 -> int
Public Function Next (celt As UInteger, rgelt As TComEnumerated(), ByRef pceltFetched As UInteger) As Integer
Parameters
- celt
- UInt32
Number of requested elements.
- rgelt
- TComEnumerated[]
Enough storage to hold the number of elements specified by celt
. This storage must be supplied by the caller. This parameter cannot be null.
- pceltFetched
- UInt32
Indicates the number of elements that were actually fetched. This number can be less than the number requested in celt
.
Returns
S_OK if successful, or an error otherwise.
Applies to
Next(UInt32, TComEnumerated[], UInt32[])
Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by celt
elements, so that subsequent calls return the subsequent elements.
int Next(unsigned int celt, std::Array <TComEnumerated> const & rgelt, std::Array <unsigned int> const & pceltFetched = null);
public int Next (uint celt, TComEnumerated[] rgelt, uint[] pceltFetched = default);
abstract member Next : uint32 * 'ComEnumerated[] * uint32[] -> int
override this.Next : uint32 * 'ComEnumerated[] * uint32[] -> int
Public Function Next (celt As UInteger, rgelt As TComEnumerated(), Optional pceltFetched As UInteger() = Nothing) As Integer
Parameters
- celt
- UInt32
Number of requested elements.
- rgelt
- TComEnumerated[]
Enough storage to hold the number of elements specified by celt
. This storage must be supplied by the caller. This parameter cannot be null.
- pceltFetched
- UInt32[]
Indicates the number of elements that were actually fetched. This number can be less than the number requested in celt
.
Returns
S_OK if successful, or an error otherwise.