IMetaDataEmit::DefineUserString Method
Gets a metadata token for the specified literal string.
Syntax
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: See System Requirements.
Header: Cor.h
Library: Used as a resource in MSCorEE.dll
.NET Framework Versions: Available since 1.0
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.