ICorProfilerInfo::GetILFunctionBody Method
Gets a pointer to the body of a method in common intermediate language (CIL) code, starting at its header.
Syntax
HRESULT GetILFunctionBody(
[in] ModuleID moduleId,
[in] mdMethodDef methodId,
[out] LPCBYTE *ppMethodHeader,
[out] ULONG *pcbMethodSize);
Parameters
moduleId
[in] The ID of the module in which the function resides.
methodId
[in] The metadata token for the method.
ppMethodHeader
[out] A pointer to the method's header.
pcbMethodSize
[out] An integer that specifies the size of the method.
Remarks
A method is scoped by the module in which it lives. Because the GetILFunctionBody
method is designed to give a tool access to the CIL code before it has been loaded by the common language runtime (CLR), it uses the metadata token of the method to find the desired instance.
GetILFunctionBody
can return a CORPROF_E_FUNCTION_NOT_IL HRESULT if the methodId
points to a method without any CIL code (such as an abstract method, or a platform invoke (PInvoke) method).
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za