IMetaDataImport::GetMemberRefProps method (rometadataapi.h)

Gets metadata associated with the member referenced by the specified token.

Syntax

HRESULT GetMemberRefProps(
  [in]  mdMemberRef     tkMemberRef,
  [out] mdToken         *ptk,
  [out] LPWSTR          szMember,
  [in]  ULONG           cchMember,
  [out] ULONG           *pchMember,
  [out] PCCOR_SIGNATURE *ppvSigBlob,
  [out] ULONG           *pcbSigBlob
);

Parameters

[in] tkMemberRef

The MemberRef token to return associated metadata for.

[out] ptk

A TypeDef or TypeRef, or TypeSpec token that represents the class that declares the member, or a ModuleRef token that represents the module class that declares the member, or a MethodDef that represents the member.

[out] szMember

A string buffer for the member's name.

[in] cchMember

The requested size in wide characters of szMember.

[out] pchMember

The returned size in wide characters of szMember.

[out] ppvSigBlob

A pointer to the binary metadata signature for the member.

[out] pcbSigBlob

The size in bytes of ppvSigBlob.

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

See also

IMetaDataImport