IMetaDataAssemblyImport::FindExportedTypeByName Method

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


[in] The name of the exported type.


[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.


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

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

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Community Additions

© 2016 Microsoft