Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FindTypeDefByName Method

IMetaDataImport::FindTypeDefByName Method

Gets a pointer to the TypeDef metadata token for the Type with the specified name.

HRESULT FindTypeDefByName
   [in]  LPCWSTR       szTypeDef,
   [in]  mdToken       tkEnclosingClass,
   [out] mdTypeDef     *ptd
);

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.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.6, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Show:
© 2015 Microsoft