Share via


IMetaDataImport::GetTypeDefProps Method

Returns metadata information for the Type represented by the specified TypeDef token.

HRESULT GetTypeDefProps (
    mdTypeDef   td,
    LPWSTR      szTypeDef,
    ULONG       cchTypeDef,
    ULONG       *pchTypeDef,
    DWORD       *pdwTypeDefFlags,
    mdToken     *ptkExtends
);

Parameters

Parameter Description

td

[in] The TypeDef token that represents the type to return metadata for.

szTypeDef

[out] A buffer containing the type name.

cchTypeDef

[in] The size in wide characters of szTypeDef.

pchTypeDef

[out] The number of wide characters returned in szTypeDef.

pdwTypeDefFlags

[out] A pointer to any flags that modify the type definition. This value is a bitmask from the CorTypeAttr Enumeration enumeration.

ptkExtends

[out] A TypeDef or TypeRef metadata token that represents the base type of the requested type.

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