Share via


IMetaDataImport::GetNameFromToken Method

Gets the UTF-8 name of the object referenced by the specified metadata token.

Note

GetNameFromToken is obsolete. It is recommended that you call another method to get an object name.

HRESULT GetNameFromToken (
    mdToken     tk,
    MDUTF8CSTR  *pszUtf8NamePtr
);

Parameters

Parameter Description

tk

[in] The token representing the object to return the name for.

pszUtf8NamePtr

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

Remarks

GetNameFromToken is obsolete. It is recommended that you call another method to get an object name.

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