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

Gets the literal string represented by the specified metadata token.

Syntax


HRESULT GetUserString(
  [in]                                             mdString tkString,
  [out, size_is(cchString), length_is(*pchString)] LPWSTR   szString,
  [in]                                             ULONG    cchString,
  [out]                                            ULONG    *pchString
);

Parameters

tkString [in]

The String token to return the associated string for.

szString [out]

A copy of the requested string.

cchString [in]

The maximum size in wide characters of the requested szString.

pchString [out]

The size in wide characters of the returned szString.

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