Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Gets an interface that provides a method to allocate memory to be used for swapping out the body of a method in common intermediate language (CIL) code.
Syntax
HRESULT GetILFunctionBodyAllocator(
[in] ModuleID moduleId,
[out] IMethodMalloc **ppMalloc);
Parameters
moduleId
[in] The ID of the module in which the method resides.
ppMalloc
[out] A pointer to an IMethodMalloc interface that provides a method to allocate the memory.
Remarks
A method body in CIL code must be located as a relative virtual address (RVA), relative to the loaded module, which means that it follows the module within 4 GB. To make it easier for a tool to swap out the body of a method, the GetILFunctionBodyAllocator method ensures that memory is allocated within that range.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0