Share via


IVsaEngine.LCID Property

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

public: __property int32 get_LCID(); 
public: __property int32 set_LCID(Int32 value);
public int32 LCID {get; set;}
Property Get LCID() As Int32 
Public Property Let LCID(ByVal value As Int32)

Return 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.

See Also

Reference

IVsaEngine Interface