DkmClrModuleInstance.GetMetaDataBytesPtr(UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a pointer to the raw metadata bytes for the given module.
NOTE: This pointer value will become invalid if/when the module is a) unloaded or b) modified. To detect these scenarios: a) Add a data item to the module instance or AppDomain. The pointer will be invalid after the OnClose method is called (when the module instance or AppDomain is unloaded). b) Implement IDkmClrModuleModifiedNotification.
This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).
public:
IntPtr GetMetaDataBytesPtr([Runtime::InteropServices::Out] System::UInt32 % Size);
public IntPtr GetMetaDataBytesPtr (out uint Size);
member this.GetMetaDataBytesPtr : uint32 -> nativeint
Public Function GetMetaDataBytesPtr (ByRef Size As UInteger) As IntPtr
Parameters
- Size
- UInt32
[Out] The size of the metadata buffer.
Returns
nativeint
[Out] A pointer to the metadata buffer.