Provides general information about the garbage collection heap, including whether it is currently enumerable.
HRESULT GetGCHeapInformation( [out] COR_HEAPINFO *pHeapInfo );
[out] A pointer to a COR_HEAPINFO value that provides general information about the garbage collection heap.
ICorDebugProcess5::GetGCHeapInformation method must be called before enumerating the heap or individual heap regions to ensure that the garbage collection structures in the process are currently valid. The garbage collection heap cannot be walked while a collection is in progress. Otherwise, the enumeration may capture garbage collection structures that are invalid.
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: Available since 4.5