Windows apps
Collapse the table of content
Expand the table of content
Information
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::FindTypeRef method

Gets a pointer to the TypeRef token for the Type reference that is in the specified scope and that has the specified name.

Syntax


HRESULT FindTypeRef(
  [in]  mdToken   tkResolutionScope,
  [in]  LPCWSTR   szName,
  [out] mdTypeRef *tkTypeRef
);

Parameters

tkResolutionScope [in]

A ModuleRef, AssemblyRef, or TypeRef token that specifies the module, assembly, or type, respectively, in which the type reference is defined.

szName [in]

The name of the type reference to search for.

tkTypeRef [out]

A pointer to the matching TypeRef token.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show:
© 2017 Microsoft