Share via


IMetaDataImport::GetRVA Method

Gets the relative virtual address (RVA) and the implementation flags of the method or field represented by the specified token.

HRESULT GetRVA (
    mdToken     tk, 
    ULONG       *pulCodeRVA, 
    DWORD       *pdwImplFlags
);

Parameters

Parameter Description

tk

[in] A MethodDef or FieldDef metadata token that represents the code object to return the RVA for. If the token is a FieldDef, the field must be a global variable.

pulCodeRVA

[out] A pointer to the relative virtual address of the code object represented by the token.

pdwImplFlags

[out] A pointer to the implementation flags for the method. This value is a bitmask from the CorMethodImpl Enumeration enumeration. The value of pdwImplFlags is valid only if tk is a MethodDef token.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface