The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IMetaDataImport::FindTypeDefByName method
Gets a pointer to the TypeDef metadata token for the Type with the specified name.
Syntax
HRESULT FindTypeDefByName( [in] LPCWSTR szTypeDef, [in] mdToken tkEnclosingClass, [out, retval] mdTypeDef *ptkTypeDef );
Parameters
- 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.
- ptkTypeDef [out, retval]
-
A pointer to the matching TypeDef token.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
IDL |
|
|---|
See also
Show: