Share via


IMetaDataImport::FindTypeRef Method

Gets a pointer to the TypeRef token for the Type reference that is in the specified scope and that has the specified name.

HRESULT FindTypeRef (
    mdToken       tkResolutionScope,
    LPCWSTR       szName,
    mdTypeRef     *ptr
);

Parameters

Parameter Description

tkResolutionScope

[in] A ModuleRef, AssemblyRef, or TypeRef token that specifies the module, assembly, or type, respectively, in which the type reference is defined.

szName

[in] The name of the type reference to search for.

ptr

[out] A pointer to the matching TypeRef token.

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