Globals Class

Globals Class

 

The Globals module contains script engine functions.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

System.Object
  Microsoft.VisualBasic.Globals

[StandardModuleAttribute]
public sealed class Globals

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticScriptEngine

Returns a String representing the runtime currently in use.

System_CAPS_pubpropertySystem_CAPS_staticScriptEngineBuildVersion

Returns an Integer containing the build version number of the runtime currently in use.

System_CAPS_pubpropertySystem_CAPS_staticScriptEngineMajorVersion

Returns an Integer containing the major version number of the runtime currently in use.

System_CAPS_pubpropertySystem_CAPS_staticScriptEngineMinorVersion

Returns an Integer containing the minor version number of the runtime currently in use.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

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

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft