次の方法で共有


IDebugExpressionEvaluator::SetLocale

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method sets the language to use to create printable results.

Syntax

HRESULT SetLocale( 
   WORD wLangID
);
int SetLocale(
   ushort wLangID
);

Parameters

wLangID
[in] The language identifier.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method may be called many times while the expression evaluator (EE) is loaded, so the EE must be able to switch languages on the fly. The EE uses this locale to return error messages and strings in the appropriate language.

See also