Globals Class
The Globals module contains script engine functions.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ScriptEngine | Returns a String representing the runtime currently in use. |
![]() ![]() | ScriptEngineBuildVersion | Returns an Integer containing the build version number of the runtime currently in use. |
![]() ![]() | ScriptEngineMajorVersion | Returns an Integer containing the major version number of the runtime currently in use. |
![]() ![]() | ScriptEngineMinorVersion | Returns an Integer containing the minor version number of the runtime currently in use. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
This module supports the Visual Basic language keywords and runtime library members that provide information about the runtime currently in use.
The following example uses the ScriptEngineMajorVersion property and related properties to return a string describing the current runtime information:
Function getRuntimeInfo() As String
Dim runtime As String = ScriptEngine & " Version "
runtime &= CStr(ScriptEngineMajorVersion) & "."
runtime &= CStr(ScriptEngineMinorVersion) & "."
runtime &= CStr(ScriptEngineBuildVersion)
' Return the current runtime information.
Return runtime
End Function
Available since 1.1
Silverlight
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


