ScriptEngine Property |
Microsoft.VisualBasic.Globals
ScriptEngine
A String containing the value "VB"
Indicates the programming language currently in use
ScriptEngine is a read-only property.
A number of scripting engines support a ScriptEngine property or function, which allows you to determine the programming language used for a particular block of code. These languages, and the strings they return, are shown in the following table:
Language | String |
---|---|
Microsoft Jscript | JScript |
VB.NET | VB |
VBScript | VBScript |
The ScriptEngine property can be most useful when calling legacy code. On the .NET platform, the need to know the current scripting engine is substantially lessened by the existence of a unified type system.
The property is new to VB.NET and is not supported in VB 6.
ScriptEngineMinorVersion Property, ScriptEngineMajorVersion Property, ScriptEngineBuildVersion Property