IMetaDataImport::GetNameFromToken method (rometadataapi.h)

Gets the UTF-8 name of the object referenced by the specified metadata token. This method is obsolete.

Syntax

HRESULT GetNameFromToken(
  [in]  mdToken    tk,
  [out] MDUTF8CSTR *pszUtf8NamePtr
);

Parameters

[in] tk

The token representing the object to return the name for.

[out] pszUtf8NamePtr

A pointer to the UTF-8 object name in the heap.

Return value

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

Remarks

GetNameFromToken is obsolete. As an alternative, call a method to get the properties of the particular type of token required, such as GetFieldProps for a field or GetMethodProps for a method.

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport