Globals Globals Globals Globals Class

Definition

The Globals module contains script engine functions.

public ref class Globals sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
public sealed class Globals
type Globals = class
Public Module Globals
Inheritance
GlobalsGlobalsGlobalsGlobals
Attributes

Examples

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  

Remarks

This module supports the Visual Basic language keywords and runtime library members that provide information about the runtime currently in use.

Properties

ScriptEngine ScriptEngine ScriptEngine ScriptEngine

Returns a String representing the runtime currently in use.

ScriptEngineBuildVersion ScriptEngineBuildVersion ScriptEngineBuildVersion ScriptEngineBuildVersion

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

ScriptEngineMajorVersion ScriptEngineMajorVersion ScriptEngineMajorVersion ScriptEngineMajorVersion

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

ScriptEngineMinorVersion ScriptEngineMinorVersion ScriptEngineMinorVersion ScriptEngineMinorVersion

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also