IMetaDataImport::GetTypeRefProps method (rometadataapi.h)

Gets the metadata associated with the Type referenced by the specified TypeRef token.

Syntax

HRESULT GetTypeRefProps(
  [in]  mdTypeRef tkTypeRef,
  [out] mdToken   *ptkResolutionScope,
  [out] LPWSTR    szName,
  [in]  ULONG     cchName,
  [out] ULONG     *pchName
);

Parameters

[in] tkTypeRef

The TypeRef token that represents the type to return metadata for.

[out] ptkResolutionScope

A pointer to the scope in which the reference is made. This value is an AssemblyRef or ModuleRef token.

[out] szName

A buffer containing the type name.

[in] cchName

The requested size in wide characters of szName.

[out] pchName

The returned size in wide characters of szName.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport