This documentation is archived and is not being maintained.

GlobalObject Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Stores constants, data type information, utility functions, and references to prototype-based objects. This class belongs to the built-in object model category.

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

public ref class GlobalObject

The GlobalObject type exposes the following members.

  NameDescription
Public propertyStatic memberActiveXObjectGets a reference to an ActiveXObjectConstructor object.
Public propertyStatic memberArrayGets a reference to an ArrayConstructor object.
Public propertyStatic memberbooleanGets the managed type that corresponds to the JScript boolean data type.
Public propertyStatic memberBooleanGets a reference to a BooleanConstructor object.
Public propertyStatic memberbyteGets the managed type that corresponds to the JScript byte data type.
Public propertyStatic membercharGets the managed type that corresponds to the JScript char data type.
Public propertyStatic memberDateGets a reference to a DateConstructor object.
Public propertyStatic memberdecimalGets the managed type that corresponds to the JScript decimal data type.
Public propertyStatic memberdoubleGets the managed type that corresponds to the JScript double data type.
Public propertyStatic memberEnumeratorGets a reference to an EnumeratorConstructor object.
Public propertyStatic memberErrorGets a reference to an ErrorConstructor object.
Public propertyStatic memberEvalErrorGets a reference to an ErrorConstructor object. The object is initialized as an EvalError.
Public propertyStatic memberfloatGets the managed type that corresponds to the JScript float data type.
Public propertyStatic memberFunctionGets a reference to a FunctionConstructor object.
Public propertyStatic memberintGets the managed type that corresponds to the JScript int data type.
Public propertyStatic memberlongGets the managed type that corresponds to the JScript long data type.
Public propertyStatic memberMathGets a reference to a MathObject object.
Public propertyStatic memberNumberGets a reference to a NumberConstructor object.
Public propertyStatic memberObjectGets a reference to an ObjectConstructor object.
Public propertyStatic memberRangeErrorGets a reference to an ErrorConstructor object. The object is initialized as a RangeError.
Public propertyStatic memberReferenceErrorGets a reference to an ErrorConstructor object. The object is initialized as a ReferenceError.
Public propertyStatic memberRegExpGets a reference to a RegExpConstructor object.
Public propertyStatic membersbyteGets the managed type that corresponds to the JScript sbyte data type.
Public propertyStatic membershortGets the managed type that corresponds to the JScript short data type.
Public propertyStatic memberStringGets a reference to a StringConstructor object.
Public propertyStatic memberSyntaxErrorGets a reference to an ErrorConstructor object. The object is initialized as a SyntaxError.
Public propertyStatic memberTypeErrorGets a reference to an ErrorConstructor object. The object is initialized as a TypeError.
Public propertyStatic memberuintGets the managed type that corresponds to the JScript uint data type.
Public propertyStatic memberulongGets the managed type that corresponds to the JScript ulong data type.
Public propertyStatic memberURIErrorGets a reference to an ErrorConstructor object. The object is initialized as a URIError.
Public propertyStatic memberushortGets the managed type that corresponds to the JScript ushort data type.
Public propertyStatic memberVBArrayGets a reference to a VBArrayConstructor object.
Public propertyStatic membervoidGets the managed type that corresponds to the return value of a function that does not return a value.
Top

  NameDescription
Public methodStatic memberCollectGarbageCalls the garbage collector.
Public methodStatic memberdecodeURIDecodes the specified Uniform Resource Identifier (URI), accounting for reserved characters.
Public methodStatic memberdecodeURIComponentDecodes the specified Uniform Resource Identifier (URI).
Public methodStatic memberencodeURIEncodes the specified Uniform Resource Identifier (URI), accounting for reserved characters.
Public methodStatic memberencodeURIComponentEncodes the specified Uniform Resource Identifier (URI).
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberescapeConverts the specified string to use the % character to escape reserved characters (@, *, _, +, -, ., /) and express them in Unicode notation.
Public methodStatic memberevalThrows an IllegalEval exception in all cases.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetObjectCreates a managed object from an unmanaged object by using either the moniker or the ProgID.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberisFiniteDetermines whether the specified number represents infinity.
Public methodStatic memberisNaNDetermines whether the specified number can be converted to a JScript number.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberparseFloatConverts the specified string to its Double equivalent.
Public methodStatic memberparseIntConverts the specified string to its Double equivalent, using the specified base.
Public methodStatic memberScriptEngineGets the name of the scripting engine.
Public methodStatic memberScriptEngineBuildVersionGets the build number of the scripting engine.
Public methodStatic memberScriptEngineMajorVersionGets the major version number of the scripting engine.
Public methodStatic memberScriptEngineMinorVersionGets the minor version number of the scripting engine.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberunescapeConverts % escaped characters (@, *, _, +, -, ., /) in the specified string to their original form. The escaped characters are expressed in Unicode notation.
Top

  NameDescription
Public fieldStatic memberInfinityRepresents positive infinity. This field is constant.
Public fieldStatic memberNaNRepresents a value that is not a number (NaN). This field is constant.
Protected fieldoriginalActiveXObjectFieldStores a reference to an ActiveXObjectConstructor object.
Protected fieldoriginalArrayFieldStores a reference to an ArrayConstructor object.
Protected fieldoriginalBooleanFieldStores a reference to a BooleanConstructor object.
Protected fieldoriginalDateFieldStores a reference to a DateConstructor object.
Protected fieldoriginalEnumeratorFieldStores a reference to an EnumeratorConstructor object.
Protected fieldoriginalErrorFieldStores a reference to an ErrorConstructor object.
Protected fieldoriginalEvalErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as an EvalError.
Protected fieldoriginalFunctionFieldStores a reference to a FunctionConstructor object.
Protected fieldoriginalNumberFieldStores a reference to a NumberConstructor object.
Protected fieldoriginalObjectFieldStores a reference to an ObjectConstructor object.
Protected fieldoriginalObjectPrototypeFieldStores a reference to an ObjectPrototype object.
Protected fieldoriginalRangeErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as a RangeError.
Protected fieldoriginalReferenceErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as a ReferenceError.
Protected fieldoriginalRegExpFieldStores a reference to a RegExpConstructor object.
Protected fieldoriginalStringFieldStores a reference to a StringConstructor object.
Protected fieldoriginalSyntaxErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as a SyntaxError.
Protected fieldoriginalTypeErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as a TypeError.
Protected fieldoriginalURIErrorFieldStores a reference to an ErrorConstructor object. The object is initialized as a URIError.
Protected fieldoriginalVBArrayFieldStores a reference to a VBArrayConstructor object.
Public fieldStatic memberundefinedRepresents a value that is null.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: