ISOSDacInterface::GetMethodDescName 方法

會得到對應 MethodDec 位址的名稱。

Note

此 API 原本是針對運行時間內部使用所設計。 雖然現在支援第三方使用,但建議您盡可能使用 ICorDebugICorProfiler API。

Syntax

HRESULT GetMethodDescName(CLRDATA_ADDRESS methodDesc, unsigned int count, wchar_t *name, unsigned int *pNeeded);

Parameters

methodDesc
[在]MethodDesc 的位址。

count
[在]緩衝區大小 name ,寬字元顯示。

name
[出]一個接收 MethodDec 名稱的緩衝區。

pNeeded
[出]MethodDesc 名稱所需的寬字元數量。

Remarks

所提供的方法是介面的一部分 ISOSDacInterface ,對應虛擬方法表的第 23 個插槽。

要求

平台:請參閱系統需求
標題:
圖書館:
.NET Framework 版本:自 4.7 版本起可用

也請參閱