Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.06 KB

imetadataimport-enumuserstrings-method.md

File metadata and controls

73 lines (54 loc) · 2.06 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: IMetaDataImport::EnumUserStrings Method
IMetaDataImport::EnumUserStrings Method
03/30/2017
IMetaDataImport.EnumUserStrings
mscoree.dll
COM
IMetaDataImport::EnumUserStrings
IMetaDataImport::EnumUserStrings method [.NET Framework metadata]
EnumUserStrings method [.NET Framework metadata]
2b1f1418-4be8-4cdb-b418-b3abccc527a7
apiref

IMetaDataImport::EnumUserStrings Method

Enumerates String tokens representing hard-coded strings in the current metadata scope.

Syntax

HRESULT EnumUserStrings (  
   [in, out]  HCORENUM    *phEnum,  
   [out]  mdString        rStrings[],  
   [in]   ULONG           cMax,  
   [out]  ULONG           *pcStrings  
);  

Parameters

phEnum
[in, out] A pointer to the enumerator. This must be NULL for the first call of this method.

rStrings
[out] The array used to store the String tokens.

cMax
[in] The maximum size of the rStrings array.

pcStrings
[out] The number of String tokens returned in rStrings.

Return Value

HRESULT Description
S_OK EnumUserStrings returned successfully.
S_FALSE There are no tokens to enumerate. In that case, pcStrings is zero.

Remarks

The String tokens are created by the IMetaDataEmit::DefineUserString method. This method is designed to be used by a metadata browser rather than by a compiler.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: [!INCLUDEnet_current_v10plus]

See also