ICorDebugGCReferenceEnum::Next Method

Gets the specified number of COR_GC_REFERENCE instances that contain information about objects that will be garbage-collected.

Syntax

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

Parameters

celt [in] The number of roots to be retrieved.

roots [out] An array of pointers, each of which points to a COR_GC_REFERENCE object that represents the root of an object to be garbage-collected.

pceltFetched [out] A pointer to the number of COR_GC_REFERENCE objects actually returned in roots. This value may be null if celt is 1.

Remarks

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also