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::GetTypeDefProps method

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

Syntax


HRESULT GetTypeDefProps(
  [in]                                               mdTypeDef tkTypeDef,
  [out, size_is(cchTypeDef), length_is(*pchTypeDef)] LPWSTR    szTypeDef,
  [in]                                               ULONG     cchTypeDef,
  [out]                                              ULONG     *pchTypeDef,
  [out]                                              DWORD     *pdwTypeDefFlags,
  [out]                                              mdToken   *ptkExtends
);

Parameters

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

ptkExtends [out]

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

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: