ISOSDacInterface::GetMethodDescName 方法

获取与 MethodDesc 地址对应的名称。

Note

此 API 最初旨在供运行时内部使用。 尽管现在支持第三方使用,但我们建议尽量使用 ICorDebugICorProfiler API。

Syntax

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

Parameters

methodDesc
[in]MethodDesc 的地址。

count
[in]缓冲区的大小 name ,以宽字符为单位。

name
[out]接收 MethodDesc 名称的缓冲区。

pNeeded
[out]MethodDesc 名称所需的宽字符数。

Remarks

提供的方法是接口的 ISOSDacInterface 一部分,对应于虚拟方法表的第 23 个槽。

要求

平台:请参阅系统要求
页眉: 没有
图书馆: 没有
.NET Framework 版本:自 4.7 起可用

另见