ICorDebugHeapSegmentEnum Interface

Provides an enumerator for the memory regions of the managed heap. This interface is a subclass of the ICorDebugEnum interface.

Methods

Method Description
Next Method Gets the specified number of COR_SEGMENT instances that contain information about regions of the managed heap.

Remarks

The ICorDebugHeapSegmentEnum interface implements the ICorDebugEnum interface.

An ICorDebugHeapSegmentEnum instance is populated with COR_SEGMENT instances by calling the ICorDebugProcess5::EnumerateHeapRegions method. The COR_SEGMENT objects in the collection can be enumerated by calling the ICorDebugHeapSegmentEnum::Next method.

An ICorDebugHeapSegmentEnum collection object enumerates all memory regions that may contain managed objects, but it does not guarantee that managed objects actually reside in those regions. It may include information about empty or reserved memory regions.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also