Partager via


IMetaDataImport::GetTypeRefProps Method

Gets the metadata associated with the Type referenced by the specified TypeRef token.

HRESULT GetTypeRefProps (
    mdTypeRef   tr,
    mdToken     *ptkResolutionScope,
    LPWSTR      szName,
    ULONG       cchName,
    ULONG       *pchName
);

Parameters

Parameter Description

tr

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

ptkResolutionScope

[out] A pointer to the scope in which the reference is made. This value is an AssemblyRef or ModuleRef token.

szName

[out] A buffer containing the type name.

cchName

[in] The requested size in wide characters of szName.

pchName

[out] The returned size in wide characters of szName.

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