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.

HRESULT GetMemberProps (
    mdToken           mb, 
    mdTypeDef         *pClass,
    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

Parameter Description

mb

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

pClass

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

szMember

[out] The name of the member.

cchMember

[in] The size in wide characters of the szMember buffer.

pchMember

[out] The size in wide characters of the returned name.

pdwAttr

[out] Any flag values applied to the member.

ppvSigBlob

[out] A pointer to the binary metadata signature of the member.

pcbSigBlob

[out] The size in bytes of ppvSigBlob.

pulCodeRVA

[out] A pointer to the relative virtual address of the member.

pdwImplFlags

[out] Any method implementation flags associated with the member.

pdwCPlusTypeFlag

[out] A flag that marks a ValueType.

ppValue

[out] A constant string value returned by this member.

pcchValue

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

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