IMetaDataImport::GetTypeDefProps method (rometadataapi.h)
Returns metadata information for the Type represented by the specified TypeDef token.
Syntax
HRESULT GetTypeDefProps(
[in] mdTypeDef tkTypeDef,
[out] LPWSTR szTypeDef,
[in] ULONG cchTypeDef,
[out] ULONG *pchTypeDef,
[out] DWORD *pdwTypeDefFlags,
[out] mdToken *ptkExtends
);
Parameters
[in] tkTypeDef
The TypeDef token that represents the type to return metadata for.
[out] szTypeDef
A buffer containing the type name.
[in] cchTypeDef
The size in wide characters of szTypeDef.
[out] pchTypeDef
The number of wide characters returned in szTypeDef.
[out] pdwTypeDefFlags
A pointer to any flags that modify the type definition. This value is a bitmask from the CorTypeAttr enumeration.
[out] ptkExtends
A TypeDef or TypeRef metadata token that represents the base type of the requested type.
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 |