Partilhar via


IMetaDataImport::GetUserString Method

Gets the literal string represented by the specified metadata token.

HRESULT GetUserString (
    mdString    stk,
    LPWSTR      szString,
    ULONG       cchString,
    ULONG       *pchString
);

Parameters

Parameter Description

stk

[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.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface