IMetaDataImport::FindTypeDefByName Method
Gets a pointer to the TypeDef metadata token for the Type with the specified name.
HRESULT FindTypeDefByName
LPCWSTR szTypeDef,
mdToken tkEnclosingClass,
mdTypeDef *ptd
);
Parameters
Parameter | Description |
---|---|
szTypeDef |
[in] The name of the type for which to get the TypeDef token. |
tkEnclosingClass |
[in] A TypeDef or TypeRef token representing the enclosing class. If the type to find is not a nested class, set this value to NULL. |
ptd |
[out] A pointer to the matching TypeDef 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