IMetaDataImport::GetMemberProps Method
Gets information stored in the metadata for a specified member definition, including the name, binary signature, and relative virtual address, of the Type member referenced by the specified metadata token. This is a simple helper method: if mb is a MethodDef, then GetMethodProps is called; if mb is a FieldDef, then GetFieldProps is called. See these other methods for details.
Syntax
HRESULT GetMemberProps (
[in] mdToken mb,
[out] mdTypeDef *pClass,
[out] LPWSTR szMember,
[in] ULONG cchMember,
[out] ULONG *pchMember,
[out] DWORD *pdwAttr,
[out] PCCOR_SIGNATURE *ppvSigBlob,
[out] ULONG *pcbSigBlob,
[out] ULONG *pulCodeRVA,
[out] DWORD *pdwImplFlags,
[out] DWORD *pdwCPlusTypeFlag,
[out] UVCP_CONSTANT *ppValue,
[out] ULONG *pcchValue
);
Parameters
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. It is one of the ELEMENT_TYPE_*
values.
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: See System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: Available since 1.0