Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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(
  [in]                                             mdToken         tkMember,
  [out]                                            mdTypeDef       *ptkTypeDef,
  [out, size_is(cchMember), length_is(*pchMember)] LPWSTR          szMember,
  [in]                                             ULONG           cchMember,
  [out]                                            ULONG           *pchMember,
  [out]                                            DWORD           *pdwAttr,
  [out, size_is(, *pcbSigBlob)]                    PCCOR_SIGNATURE *ppvSigBlob,
  [out]                                            ULONG           *pcbSigBlob,
  [out]                                            ULONG           *pulCodeRVA,
  [out]                                            DWORD           *pdwImplFlags,
  [out]                                            DWORD           *pdwCPlusTypeFlag,
  [out, size_is(, *pcchValue)]                     UVCP_CONSTANT   *ppValue,
  [out]                                            ULONG           *pcchValue
);

Parameters

tkMember [in]

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

ptkTypeDef [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.

Return value

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

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show:
© 2017 Microsoft