ICorDebugProcess5 介面ICorDebugProcess5 Interface

擴充 ICorDebugProcess 介面以支援存取 managed 堆積,以提供 managed 物件的垃圾收集資訊,以及判斷偵錯工具是否從應用程式本機原生映射快取載入影像。Extends the ICorDebugProcess interface to support access to the managed heap, to provide information about garbage collection of managed objects, and to determine whether a debugger loads images from the application local native image cache.


方法Method 描述Description
EnableNGenPolicy 方法EnableNGenPolicy Method 設定值,這個值會決定應用程式如何在 managed 偵錯工具下執行時載入原生映射。Sets a value that determines how an application loads native images while running under a managed debugger.
EnumerateGCReferences 方法EnumerateGCReferences Method 取得要在進程中進行垃圾收集之所有物件的列舉值。Gets an enumerator for all objects that are to be garbage-collected in a process.
EnumerateHandles 方法EnumerateHandles Method 取得進程中物件控制碼的列舉值。Gets an enumerator for object handles in a process.
EnumerateHeap 方法EnumerateHeap Method 取得 managed 堆積上物件的列舉值。Gets an enumerator for objects on the managed heap.
EnumerateHeapRegions 方法EnumerateHeapRegions Method 取得 managed 堆積區域的列舉值。Gets an enumerator for regions of the managed heap.
GetArrayLayout 方法GetArrayLayout Method 取得記憶體中陣列版面配置的相關資訊。Gets information about the layout of an array in memory.
GetGCHeapInformation 方法GetGCHeapInformation Method 取得 COR_HEAPINFO 結構的指標,其中包含要在 managed 堆積上進行垃圾收集之物件的相關資訊。Gets a pointer to a COR_HEAPINFO structure that contains information about objects that are to be garbage-collected on the managed heap.
GetObject 方法GetObject Method 取得 managed 堆積上物件的指標。Gets a pointer to an object on the managed heap.
GetTypeFields 方法GetTypeFields Method 取得陣列的指標,該陣列包含以其類型識別碼為基礎之類型的欄位資訊。Gets a pointer to an array that contains field information for a type based on its type identifier.
GetTypeForTypeID 方法GetTypeForTypeID Method 取得型別物件,它會根據物件的型別識別碼來提供物件的相關資訊。Gets a type object that provides information about an object based on its type identifiers.
GetTypeID 方法GetTypeID Method 取得位於指定位址之物件的類型識別碼。Gets the type identifier for the object at a specified address.
GetTypeLayout 方法GetTypeLayout Method 根據物件的類型識別碼,取得記憶體中物件配置的相關資訊。Gets information about the layout of an object in memory based on its type identifier.


這個介面會以邏輯方式擴充 ICorDebugProcess、ICorDebugProcess2 和 ICorDebugProcess3 介面。This interface logically extends the ICorDebugProcess, ICorDebugProcess2, and ICorDebugProcess3 interfaces.


此介面不支援從另一部電腦或另一個進程,從遠端呼叫。This interface does not support being called remotely, either from another machine or from another process.


平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.5 起可用Available since 4.5.NET Framework Versions: 自 4.5 起可用Available since 4.5

另請參閱See also