This documentation is archived and is not being maintained.
GlobalObject Class
Visual Studio 2010
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.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The GlobalObject type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | ActiveXObject | Gets a reference to an ActiveXObjectConstructor object. |
![]() ![]() | Array | Gets a reference to an ArrayConstructor object. |
![]() ![]() | boolean | Gets the managed type that corresponds to the JScript boolean data type. |
![]() ![]() | Boolean | Gets a reference to a BooleanConstructor object. |
![]() ![]() | byte | Gets the managed type that corresponds to the JScript byte data type. |
![]() ![]() | char | Gets the managed type that corresponds to the JScript char data type. |
![]() ![]() | Date | Gets a reference to a DateConstructor object. |
![]() ![]() | decimal | Gets the managed type that corresponds to the JScript decimal data type. |
![]() ![]() | double | Gets the managed type that corresponds to the JScript double data type. |
![]() ![]() | Enumerator | Gets a reference to an EnumeratorConstructor object. |
![]() ![]() | Error | Gets a reference to an ErrorConstructor object. |
![]() ![]() | EvalError | Gets a reference to an ErrorConstructor object. The object is initialized as an EvalError. |
![]() ![]() | float | Gets the managed type that corresponds to the JScript float data type. |
![]() ![]() | Function | Gets a reference to a FunctionConstructor object. |
![]() ![]() | int | Gets the managed type that corresponds to the JScript int data type. |
![]() ![]() | long | Gets the managed type that corresponds to the JScript long data type. |
![]() ![]() | Math | Gets a reference to a MathObject object. |
![]() ![]() | Number | Gets a reference to a NumberConstructor object. |
![]() ![]() | Object | Gets a reference to an ObjectConstructor object. |
![]() ![]() | RangeError | Gets a reference to an ErrorConstructor object. The object is initialized as a RangeError. |
![]() ![]() | ReferenceError | Gets a reference to an ErrorConstructor object. The object is initialized as a ReferenceError. |
![]() ![]() | RegExp | Gets a reference to a RegExpConstructor object. |
![]() ![]() | sbyte | Gets the managed type that corresponds to the JScript sbyte data type. |
![]() ![]() | short | Gets the managed type that corresponds to the JScript short data type. |
![]() ![]() | String | Gets a reference to a StringConstructor object. |
![]() ![]() | SyntaxError | Gets a reference to an ErrorConstructor object. The object is initialized as a SyntaxError. |
![]() ![]() | TypeError | Gets a reference to an ErrorConstructor object. The object is initialized as a TypeError. |
![]() ![]() | uint | Gets the managed type that corresponds to the JScript uint data type. |
![]() ![]() | ulong | Gets the managed type that corresponds to the JScript ulong data type. |
![]() ![]() | URIError | Gets a reference to an ErrorConstructor object. The object is initialized as a URIError. |
![]() ![]() | ushort | Gets the managed type that corresponds to the JScript ushort data type. |
![]() ![]() | VBArray | Gets a reference to a VBArrayConstructor object. |
![]() ![]() | void | Gets the managed type that corresponds to the return value of a function that does not return a value. |
| Name | Description | |
|---|---|---|
![]() ![]() | CollectGarbage | Calls the garbage collector. |
![]() ![]() | decodeURI | Decodes the specified Uniform Resource Identifier (URI), accounting for reserved characters. |
![]() ![]() | decodeURIComponent | Decodes the specified Uniform Resource Identifier (URI). |
![]() ![]() | encodeURI | Encodes the specified Uniform Resource Identifier (URI), accounting for reserved characters. |
![]() ![]() | encodeURIComponent | Encodes the specified Uniform Resource Identifier (URI). |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | escape | Converts the specified string to use the % character to escape reserved characters (@, *, _, +, -, ., /) and express them in Unicode notation. |
![]() ![]() | eval | Throws an IllegalEval exception in all cases. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetObject | Creates a managed object from an unmanaged object by using either the moniker or the ProgID. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | isFinite | Determines whether the specified number represents infinity. |
![]() ![]() | isNaN | Determines whether the specified number can be converted to a JScript number. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | parseFloat | Converts the specified string to its Double equivalent. |
![]() ![]() | parseInt | Converts the specified string to its Double equivalent, using the specified base. |
![]() ![]() | ScriptEngine | Gets the name of the scripting engine. |
![]() ![]() | ScriptEngineBuildVersion | Gets the build number of the scripting engine. |
![]() ![]() | ScriptEngineMajorVersion | Gets the major version number of the scripting engine. |
![]() ![]() | ScriptEngineMinorVersion | Gets the minor version number of the scripting engine. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | unescape | Converts % escaped characters (@, *, _, +, -, ., /) in the specified string to their original form. The escaped characters are expressed in Unicode notation. |
| Name | Description | |
|---|---|---|
![]() ![]() | Infinity | Represents positive infinity. This field is constant. |
![]() ![]() | NaN | Represents a value that is not a number (NaN). This field is constant. |
![]() | originalActiveXObjectField | Stores a reference to an ActiveXObjectConstructor object. |
![]() | originalArrayField | Stores a reference to an ArrayConstructor object. |
![]() | originalBooleanField | Stores a reference to a BooleanConstructor object. |
![]() | originalDateField | Stores a reference to a DateConstructor object. |
![]() | originalEnumeratorField | Stores a reference to an EnumeratorConstructor object. |
![]() | originalErrorField | Stores a reference to an ErrorConstructor object. |
![]() | originalEvalErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as an EvalError. |
![]() | originalFunctionField | Stores a reference to a FunctionConstructor object. |
![]() | originalNumberField | Stores a reference to a NumberConstructor object. |
![]() | originalObjectField | Stores a reference to an ObjectConstructor object. |
![]() | originalObjectPrototypeField | Stores a reference to an ObjectPrototype object. |
![]() | originalRangeErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as a RangeError. |
![]() | originalReferenceErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as a ReferenceError. |
![]() | originalRegExpField | Stores a reference to a RegExpConstructor object. |
![]() | originalStringField | Stores a reference to a StringConstructor object. |
![]() | originalSyntaxErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as a SyntaxError. |
![]() | originalTypeErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as a TypeError. |
![]() | originalURIErrorField | Stores a reference to an ErrorConstructor object. The object is initialized as a URIError. |
![]() | originalVBArrayField | Stores a reference to a VBArrayConstructor object. |
![]() ![]() | undefined | Represents a value that is null. |
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.
Show:
