IMetaDataAssemblyImport::FindExportedTypeByName method (rometadataapi.h)
Gets a pointer to an exported type, given its name and enclosing type.
Syntax
HRESULT FindExportedTypeByName(
[in] LPCWSTR szName,
[in] mdToken mdtExportedType,
[out] mdExportedType *ptkExportedType
);
Parameters
[in] szName
The name of the exported type.
[in] mdtExportedType
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] ptkExportedType
A pointer to the mdExportedType token that represents the exported type.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method uses the standard rules employed by the common language runtime for resolving references.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |