Muokkaa

Jaa


ICorDebugModule::GetMetaDataInterface Method

Gets a metadata interface object that can be used to examine the metadata for the module.

Syntax

HRESULT GetMetaDataInterface (
    [in] REFIID      riid,
    [out] IUnknown **ppObj
);

Parameters

riid [in] The reference ID that specifies the metadata interface.

ppObj [out] A pointer to the address of an T:IUnknown object that is one of the metadata interfaces.

Remarks

The debugger can use the GetMetaDataInterface method to make a copy of the original metadata for a module, which it must do in order to edit that module. The debugger calls GetMetaDataInterface to get an IMetaDataEmit interface object for the module, then calls IMetaDataEmit::SaveToMemory to save a copy of the module's metadata to memory.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0

See also