Redaguoti

ISOSDacInterface::GetMethodDescFromToken Method

Gets a MethodDesc address for a metadata token in a module.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT GetMethodDescFromToken(CLRDATA_ADDRESS moduleAddr, mdToken token, CLRDATA_ADDRESS *methodDesc);

Parameters

moduleAddr
[in] The address of the module that contains the metadata token.

token
[in] The metadata token.

methodDesc
[out] The MethodDesc address that corresponds to the metadata token.

Remarks

The provided method is part of the ISOSDacInterface interface and corresponds to the 25th slot of the virtual method table.

Requirements

Platforms: See System Requirements.
Header: None
Library: None
.NET Framework Versions: Available since 4.7

See also