Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the relative virtual address (RVA) and the implementation flags of the method or field represented by the specified token.
Syntax
HRESULT GetRVA(
[in] mdToken tk,
[out] ULONG *pulCodeRVA,
[out] DWORD *pdwImplFlags
);
Parameters
[in] tk
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.
[out] pulCodeRVA
A pointer to the relative virtual address of the code object represented by the token.
[out] pdwImplFlags
A pointer to the implementation flags for the method. This value is a bitmask from the CorMethodImpl enumeration. The value of pdwImplFlags is valid only if tk is a MethodDef token.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |