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::GetTypeRefProps method

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

Syntax


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

Parameters

tkTypeRef [in]

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

ptkResolutionScope [out]

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

szName [out]

A buffer containing the type name.

cchName [in]

The requested size in wide characters of szName.

pchName [out]

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

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: