Share via


IMetaDataAssemblyImport::FindExportedTypeByName Method

Gets a pointer to an exported type, given its name and enclosing type.

HRESULT FindExportedTypeByName (
    [in]  LPCWSTR           szName, 
    [in]  mdToken           mdtExportedType, 
    [out] mdExportedType    *ptkExportedType
);

Parameters

Parameter Description

szName

[in] The name of the exported type.

mdtExportedType

[in] The metadata token for the enclosing class of the exported type. This value is mdExportedTypeNil if the requested exported type is not a nested type.

ptkExportedType

[out] A pointer to the mdExportedType token that represents the exported type.

Remarks

The FindExportedTypeByName method uses the standard rules employed by the common language runtime for resolving references.

Requirements

Platform: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataAssemblyImport Interface

Concepts

How the Runtime Locates Assemblies