ICorProfilerThreadEnum::Next Method

Gets the specified number of contiguous threads from a sequential collection of threads, starting at the enumerator's current position in the sequence.

Syntax

HRESULT Next (    [in]  ULONG      celt,  
    [out, size_is(celt), length_is(*pceltFetched)]  
                    ThreadID ids[],  
    [out] ULONG *   pceltFetched  
);  

Parameters

celt
[in] The number of threads to retrieve.

ids
[out] An array of ThreadID values, each of which represents a retrieved thread.

pceltFetched
[out] A pointer to the number of threads actually returned in the ids array.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK celt elements were returned.
S_FALSE Fewer than celt elements were returned, which indicates that the enumeration is complete.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also