Uredi

Deli z drugimi prek


Globals Class

Definition

The Globals module contains script engine functions.

public ref class Globals sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
public sealed class Globals
[<Microsoft.VisualBasic.CompilerServices.StandardModule>]
type Globals = class
Public Module Globals
Inheritance
Globals
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

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.

Methods

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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also