Delen via


IMetaDataImport::GetNameFromToken Method

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

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

Parameters

  • 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. We recommend that you call another method to get an object name.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 1.0

See Also

Reference

IMetaDataImport Interface

IMetaDataImport2 Interface