Partager via


IMetaDataEmit::DefineUserString Method

Gets a metadata token for the specified literal string.

HRESULT DefineUserString ( 
    [in]  LPCWSTR     szString, 
    [in]  ULONG       cchString, 
    [out] mdString    *pstk 
);

Parameters

  • szString
    [in] The user string to store.

  • cchString
    [in] The count of wide characters in szString.

  • pstk
    [out] The string token assigned.

Requirements

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

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataEmit Interface

IMetaDataEmit2 Interface