GlobalScope Class
This API supports the product infrastructure and is not intended to be used directly from your code.
Represents the global scope.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
Microsoft.JScript.ScriptObject
Microsoft.JScript.ActivationObject
Microsoft.JScript.GlobalScope
| Name | Description | |
|---|---|---|
![]() | GlobalScope(GlobalScope, VsaEngine) | This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the GlobalScope class. |
| Name | Description | |
|---|---|---|
![]() | Item(Double) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a member of the script object that is designated by the specified Double index value.(Inherited from ScriptObject.) |
![]() | Item(Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a member of the script object that is designated by the specified Int32 index value.(Inherited from ScriptObject.) |
![]() | Item(Object[]) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value.(Inherited from ScriptObject.) |
![]() | Item(String) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a member of the script object that is designated by the specified name.(Inherited from ScriptObject.) |
![]() | UnderlyingSystemType | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the type of the script object.(Inherited from ScriptObject.) |
| Name | Description | |
|---|---|---|
![]() | AddField(String) | This API supports the product infrastructure and is not intended to be used directly from your code. Adds the specified field to the global scope. |
![]() | CreateField(String, FieldAttributes, Object) | This API supports the product infrastructure and is not intended to be used directly from your code. Creates a new global variable, using the specified name, value, and attributes.(Inherited from ActivationObject.) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetDefaultThisObject() | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the current default scope, which is either the contained object of a with statement scope, or the global scope.(Overrides ActivationObject.GetDefaultThisObject().) |
![]() | GetField(String, BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a field that has the specified name.(Inherited from ScriptObject.) |
![]() | GetField(String, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a field that has the specified name by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.(Overrides ActivationObject.GetField(String, Int32).) |
![]() | GetFields(BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of FieldInfo objects that correspond to all fields of the global scope.(Overrides ScriptObject.GetFields(BindingFlags).) |
![]() | GetGlobalScope() | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the global scope by returning a reference to this object.(Overrides ActivationObject.GetGlobalScope().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLocalField(String) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the local declaration of a field that has the specified name. This is used at compile time for error checking.(Overrides ActivationObject.GetLocalField(String).) |
![]() | GetMember(String, BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of MemberInfo objects that correspond to all members that match a specified name.(Overrides ActivationObject.GetMember(String, BindingFlags).) |
![]() | GetMembers(BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of MemberInfo objects that correspond to all members of the global scope.(Overrides ActivationObject.GetMembers(BindingFlags).) |
![]() | GetMemberValue(String, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the value of the specified member by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.(Inherited from ActivationObject.) |
![]() | GetMethod(String, BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a method that has the specified name.(Inherited from ScriptObject.) |
![]() | GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a method that has the specified name by using the specified selection criteria.(Inherited from ScriptObject.) |
![]() | GetMethods(BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of MethodInfo objects that correspond to all methods of the global scope.(Overrides ScriptObject.GetMethods(BindingFlags).) |
![]() | GetParent() | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a reference to the parent object.(Inherited from ScriptObject.) |
![]() | GetProperties(BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of PropertyInfo objects that correspond to all properties of the global scope.(Overrides ScriptObject.GetProperties(BindingFlags).) |
![]() | GetProperty(String, BindingFlags) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a property that has the specified name.(Inherited from ScriptObject.) |
![]() | GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a property that has the specified name by using the specified selection criteria.(Inherited from ScriptObject.) |
![]() | GetType() | |
![]() | InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) | This API supports the product infrastructure and is not intended to be used directly from your code. Invokes the specified member.(Inherited from ScriptObject.) |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | engine | This API supports the product infrastructure and is not intended to be used directly from your code. Stores a reference to the scripting engine.(Inherited from ScriptObject.) |
![]() | field_table | This API supports the product infrastructure and is not intended to be used directly from your code. Stores an array of variables that are in scope.(Inherited from ActivationObject.) |
![]() | parent | This API supports the product infrastructure and is not intended to be used directly from your code. Stores a reference to the parent object.(Inherited from ScriptObject.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IExpando.AddMethod(String, Delegate) | This API supports the product infrastructure and is not intended to be used directly from your code. Adds the specified method to the global scope. This method is not implemented in JScript. |
![]() ![]() | IExpando.AddProperty(String) | This API supports the product infrastructure and is not intended to be used directly from your code. Adds the specified property to the global scope. This method is not implemented in JScript. |
![]() ![]() | IExpando.RemoveMember(MemberInfo) | This API supports the product infrastructure and is not intended to be used directly from your code. Removes the specified member from the global scope. |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.






