GlobalScope 类
定义
表示全局范围。Represents the global scope.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class GlobalScope : Microsoft::JScript::ActivationObject, System::Runtime::InteropServices::Expando::IExpando
public class GlobalScope : Microsoft.JScript.ActivationObject, System.Runtime.InteropServices.Expando.IExpando
[System.Runtime.InteropServices.ComVisible(true)]
public class GlobalScope : Microsoft.JScript.ActivationObject, System.Runtime.InteropServices.Expando.IExpando
type GlobalScope = class
inherit ActivationObject
interface IExpando
interface IReflect
[<System.Runtime.InteropServices.ComVisible(true)>]
type GlobalScope = class
inherit ActivationObject
interface IExpando
interface IReflect
Public Class GlobalScope
Inherits ActivationObject
Implements IExpando
- 继承
- 属性
- 实现
构造函数
| GlobalScope(GlobalScope, VsaEngine) |
此 API 支持产品基础结构,不能在代码中直接使用。 初始化 GlobalScope 类的新实例。Initializes a new instance of the GlobalScope class. |
字段
| engine |
此 API 支持产品基础结构,不能在代码中直接使用。 存储对脚本引擎的引用。Stores a reference to the scripting engine. (继承自 ScriptObject) |
| field_table |
此 API 支持产品基础结构,不能在代码中直接使用。 存储位于范围内的变量的数组。Stores an array of variables that are in scope. (继承自 ActivationObject) |
| parent |
此 API 支持产品基础结构,不能在代码中直接使用。 存储对父对象的引用。Stores a reference to the parent object. (继承自 ScriptObject) |
属性
| Item[Double] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的 Double 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified Double index value. (继承自 ScriptObject) |
| Item[Int32] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的 Int32 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified Int32 index value. (继承自 ScriptObject) |
| Item[Object[]] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定的名称、Double 索引值或 Int32 索引值指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value. (继承自 ScriptObject) |
| Item[String] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取或设置由指定名称指定的脚本对象的成员。Gets or sets a member of the script object that is designated by the specified name. (继承自 ScriptObject) |
| UnderlyingSystemType |
此 API 支持产品基础结构,不能在代码中直接使用。 获取脚本对象的类型。Gets the type of the script object. (继承自 ScriptObject) |
方法
| AddField(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定字段添加到全局范围。Adds the specified field to the global scope. |
| CreateField(String, FieldAttributes, Object) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用指定的名称、值和特性创建一个新全局变量。Creates a new global variable, using the specified name, value, and attributes. (继承自 ActivationObject) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetDefaultThisObject() |
此 API 支持产品基础结构,不能在代码中直接使用。 获取当前默认范围,该范围是 |
| GetField(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的字段。Gets a field that has the specified name. (继承自 ScriptObject) |
| GetField(String, Int32) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过搜索范围层次结构来获取具有指定名称的字段。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. |
| GetFields(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 FieldInfo 对象的数组,这些对象对应于全局范围的所有字段。Gets an array of FieldInfo objects that correspond to all fields of the global scope. |
| GetGlobalScope() |
此 API 支持产品基础结构,不能在代码中直接使用。 通过返回对此对象的引用而获取全局范围。Gets the global scope by returning a reference to this object. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetLocalField(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的字段的局部声明。Gets the local declaration of a field that has the specified name. 在编译时使用此声明来进行错误检查。This is used at compile time for error checking. |
| GetMember(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MemberInfo 对象的数组,这些对象对应于与指定名称匹配的所有成员。Gets an array of MemberInfo objects that correspond to all members that match a specified name. |
| GetMembers(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MemberInfo 对象的数组,这些对象对应于全局范围的所有成员。Gets an array of MemberInfo objects that correspond to all members of the global scope. |
| GetMemberValue(String, Int32) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过搜索范围层次结构来获取指定成员的值。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. (继承自 ActivationObject) |
| GetMethod(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的方法。Gets a method that has the specified name. (继承自 ScriptObject) |
| GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过使用指定的选择条件来获取具有指定名称的方法。Gets a method that has the specified name by using the specified selection criteria. (继承自 ScriptObject) |
| GetMethods(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 MethodInfo 对象的数组,这些对象对应于全局范围的所有方法。Gets an array of MethodInfo objects that correspond to all methods of the global scope. |
| GetParent() |
此 API 支持产品基础结构,不能在代码中直接使用。 获取对父对象的引用。Gets a reference to the parent object. (继承自 ScriptObject) |
| GetProperties(BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 PropertyInfo 对象的数组,这些对象对应于全局范围的所有属性。Gets an array of PropertyInfo objects that correspond to all properties of the global scope. |
| GetProperty(String, BindingFlags) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定名称的属性。Gets a property that has the specified name. (继承自 ScriptObject) |
| GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 通过使用指定的选择条件来获取具有指定名称的属性。Gets a property that has the specified name by using the specified selection criteria. (继承自 ScriptObject) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) |
此 API 支持产品基础结构,不能在代码中直接使用。 调用指定的成员。Invokes the specified member. (继承自 ScriptObject) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
| IExpando.AddMethod(String, Delegate) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定方法添加到全局范围。Adds the specified method to the global scope. 此方法未在 JScript 中实现。This method is not implemented in JScript. |
| IExpando.AddProperty(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 将指定属性添加到全局范围。Adds the specified property to the global scope. 此方法未在 JScript 中实现。This method is not implemented in JScript. |
| IExpando.RemoveMember(MemberInfo) |
此 API 支持产品基础结构,不能在代码中直接使用。 从全局范围中移除指定的成员。Removes the specified member from the global scope. |