ISOSDacInterface 介面ISOSDacInterface Interface

提供 helper 方法來存取資料 SOSProvides helper methods to access data from SOS.

注意

此 API,原本專為在執行階段內部使用。This API was originally designed for internal use in the runtime. 雖然它現在支援用於第 3 個合作對象,但我們建議使用 ICorDebug ICorProfiler 盡可能的 Api。Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

方法Methods

方法Method 描述Description
GetMethodDescDataGetMethodDescData 取得給定 MethodDesc 指標的資料。Gets the data for the given MethodDesc pointer.
GetMethodDescPtrFromIPGetMethodDescPtrFromIP 抓取 MethodDesc 的指標,其對應至包含指定原生指令位址的方法。Retrieves the pointer of the MethodDesc corresponding the method containing the given native instruction address.
GetModuleDataGetModuleData 提取對應于指定位址上載入之模組的資料。Fetches the data corresponding to the module loaded at a given address.

備註Remarks

這個介面存在於執行時間內,且不會透過任何標頭或程式庫檔案來公開。This interface lives inside the runtime and is not exposed through any headers or library files. 不過,它是衍生自的 COM 介面, IUnknown 436f00f2-b42a-4b9f-870c-e73db66ae930 可透過一般的 COM 機制取得 GUID。However, it's a COM interface that derives from IUnknown with GUID 436f00f2-b42a-4b9f-870c-e73db66ae930 that can be obtained through the usual COM mechanisms.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.
標頭: 沒有Header: None
連結 庫: 沒有Library: None
.NET Framework 版本:自 4.7 起可用Available since 4.7.NET Framework Versions: 自 4.7 起可用Available since 4.7

另請參閱See also