This documentation is archived and is not being maintained.

IVsaEngine.LCID Property

Gets or sets the geographical locale and language in which to report exception messages.

[Visual Basic]
Property LCID As Integer
[C#]
int LCID {get; set;}
[C++]
__property int get_LCID();
__property void set_LCID(int);
[JScript]
function get LCID() : int;function set LCID(int);

Property Value

Returns an integer value representing the locale in which exception messages are to be reported.

Remarks

The locale identifier (LCID) specifies for the script engine the geographical locale in which it is running. This enables the exception messages to be rendered in the appropriate language.

The default value for the LCID property is the locale of the active thread at the time the script engine is created. Note that the LCID property setting does not affect the locale used for running the assembly where the script is running, that is, for reporting runtime exceptions, making data conversions, and so on.

For more information, see System.Globalization.CultureInfo.

The following table shows the exceptions that the LCID property can throw.

Exception Type Condition
EngineClosed The Close method has been called and the engine is closed.
EngineBusy The engine is currently executing code for another thread.
EngineNotInitialized The engine has not been initialized.
EngineRunning The engine is currently running.
LCIDNotSupported The LCID is not supported by the engine, or it is not valid.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaEngine Interface | IVsaEngine Members | Microsoft.Vsa Namespace

Show: