IMetaDataImport::GetMemberProps method

Gets metadata information, including the name, binary signature, and relative virtual address, of the Type member referenced by the specified metadata token.

Syntax

HRESULT GetMemberProps(
  mdToken         tkMember,
  mdTypeDef       *ptkTypeDef,
  LPWSTR          szMember,
  ULONG           cchMember,
  ULONG           *pchMember,
  DWORD           *pdwAttr,
  PCCOR_SIGNATURE *ppvSigBlob,
  ULONG           *pcbSigBlob,
  ULONG           *pulCodeRVA,
  DWORD           *pdwImplFlags,
  DWORD           *pdwCPlusTypeFlag,
  UVCP_CONSTANT   *ppValue,
  ULONG           *pcchValue
);

Parameters

tkMember

The token that references the member to get the associated metadata for.

ptkTypeDef

A pointer to the metadata token that represents the class of the member.

szMember

The name of the member.

cchMember

The size in wide characters of the szMember buffer.

pchMember

The size in wide characters of the returned name.

pdwAttr

Any flag values applied to the member.

ppvSigBlob

A pointer to the binary metadata signature of the member.

pcbSigBlob

The size in bytes of ppvSigBlob.

pulCodeRVA

A pointer to the relative virtual address of the member.

pdwImplFlags

Any method implementation flags associated with the member.

pdwCPlusTypeFlag

A flag that marks a ValueType.

ppValue

A constant string value returned by this member.

pcchValue

The size in characters of ppValue, or zero if ppValue does not hold a string.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport