Microsoft.JScript Namespace

Microsoft.JScript 命名空间包含支持使用 JScript 语言编译和生成代码的类。 The Microsoft.JScript namespace contains classes that support compilation and code generation using the JScript language.

ActivationObject

表示参与范围层次结构的对象。Represents an object that is taking part in a scope hierarchy. 此类包含用于解析范围和获取成员信息的方法。This class contains methods for resolving scope and for getting member information. 它属于编译和运行时状态类别。It belongs to the compilation and run-time state category.

ActiveXObjectConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ArgumentsObject

表示用于调用函数的信息。Represents the information that is used to call a function. 其中包括函数、调用方、参数以及有关堆栈帧的信息。This includes the function, the caller, the arguments, and information about the stack frame. 此类属于对象和函数类别。This class belongs to the objects and functions category.

ArrayConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ArrayLiteral

JScript 分析器使用此类表示数组文本。This class is used by the JScript parser to represent an array literal.

ArrayObject

表示一个数组对象。Represents an array object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ArrayPrototype

提供 ArrayObject 对象的静态方法和属性。Provides static methods and properties for ArrayObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ArrayWrapper

包装数组以创建 JScript ArrayObjectWraps an array to create a JScript ArrayObject. 此类将包装 .NET Framework Array 对象或 JScript ArrayObject 对象。This class wraps either a .NET Framework Array object or a JScript ArrayObject object.

AssemblyCustomAttributeList

JScript 分析器使用此类存储分配给程序集的特性。This class is used by the JScript parser to store the attributes that are assigned to an assembly.

AST

表示用于分析 JScript 代码的抽象语法树。Represents the abstract syntax tree that is used to parse JScript code.

ASTList

维护 AST 元素的列表。Maintains a list of AST elements. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

BinaryOp

表示依据两个操作数执行运算的类(比如 PlusEqualityRelational)的基类。Represents the base class for classes that perform operations on two operands, such as Plus, Equality, and Relational. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

Binding

表示对类成员、可调用的表达式或变量名称的引用。Represents a reference to a class member, callable expression, or variable name. 在编译时,此类将尝试解析对正确值的引用。This class attempts to resolve the reference to the correct value at compile time.

BitwiseBinary

执行按位二元运算。Performs bitwise binary operations. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

Block

表示 Jscript 中的块。Represents a block in JScript. 此类主要由 JSParser 用来在分析代码时创建 Block 对象。This class is used mainly by the JSParser to create Block objects when it parses code. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

BlockScope

表示代码块的范围,此代码块范围是范围层次结构的一部分,并且可以推送到全局范围堆栈上。Represents the scope of a block of code that is taking part in a scope hierarchy and that can be pushed onto the global scope stack. 例如,此类可以表示 try 块的范围。For example, this class can represent the scope of a try block.

BooleanConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

BooleanObject

表示一个 Boolean 对象。Represents a Boolean object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

BooleanPrototype

提供 BooleanObject 对象的静态方法和属性。Provides static methods and properties for BooleanObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

BreakOutOfFinally

表示当代码执行跳出 finally 块时的异常状态。Represents the exception state when code execution breaks out of a finally block.

Closure

表示一个结束函数。Represents a closure function. 此类属于对象和函数类别。This class belongs to the objects and functions category.

CmdLineException

表示在运行命令行编译器 jsc.exe 时发生的错误。Represents errors that occur when you run the command-line compiler jsc.exe.

CmdLineOptionParser

确定指定给命令行编译器 jsc.exe 的选项形式是否正确,并读取参数(如果包括任何参数)。Determines whether options that are specified to the command-line compiler jsc.exe are correctly formed, and reads the arguments if any are included.

COMCharStream

表示一个将其数据发送给 IMessageReceiver 的流。Represents a stream that sends its data to an IMessageReceiver. 在刷新数据或关闭流之前,该数据将存储在缓冲区中。The data is stored in a buffer until the data is flushed or the stream is closed.

COMFieldInfo

使 JScript 能够与外部 COM 字段通信。Enables JScript to communicate with an external COM field. 外部 COM 实现使用此类向 JScript 公开其对象,原因是 JScript 需要托管的 MemberInfo 以便绑定到外部对象。This class is used by an external COM implementation to expose its objects to JScript because JScript needs a managed MemberInfo in order to bind to an external object.

COMMethodInfo

使 JScript 能够与外部 COM 方法通信。Enables JScript to communicate with an external COM method. 外部 COM 实现使用此类向 JScript 公开其对象,原因是 JScript 需要托管的 MemberInfo 以便绑定到外部对象。This class is used by an external COM implementation to expose its objects to JScript because JScript needs a managed MemberInfo in order to bind to an external object.

COMPropertyInfo

使 JScript 能够与外部 COM 属性通信。Enables JScript to communicate with an external COM property. 外部 COM 实现使用此类向 JScript 公开其对象,原因是 JScript 需要托管的 MemberInfo 以便绑定到外部对象。This class is used by an external COM implementation to expose its objects to JScript because JScript needs a managed MemberInfo in order to bind to an external object.

Context

表示 JScript 源代码。Represents JScript source code. 此类属于编译和运行时状态类别。This class belongs to the compilation and run-time state category.

ContinueOutOfFinally

表示当代码超出 finally 块继续执行时的异常状态。Represents the exception state when code execution continues out of a finally block.

Convert

将数据从一种类型转换为另一种类型。Converts data from one type to another. 这是一个实用工具类。This is a utility class.

DateConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

DateObject

表示一个日期对象。Represents a date object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

DatePrototype

提供 DateObject 对象的静态方法和属性。Provides static methods and properties for DateObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

DebugBreak

JScript 分析器使用此类在调试器中表示断点。This class is used by the JScript parser to represent a breakpoint in a debugger.

DebugConvert

将数据从一种类型转换为另一种类型。Converts data from one type to another. 包括用于将值转换为 String 对象(以使调试器可以显示它们)的方法。Includes methods that convert values to String objects so that they can be displayed by the debugger.

DocumentContext

表示用 JScript 语言编写的源代码文件。Represents a source code file that is written in the JScript language.

DynamicFieldInfo

表示字段信息。Represents field information. 此类用于将 expando 类和脚本数组的字段返回给调试器。This class is used to return fields of expando classes and script arrays to the debugger.

Empty

表示尚未实例化的变量的值。Represents the value of a variable that has not been instantiated.

EndOfFile

JScript 分析器使用此类以异常的形式表示到达文件结尾。This class is used by the JScript parser to represent reaching the end of a file as an exception. 代码可引发此错误来停止分析器。Code can throw this error to stop the parser.

EnumeratorConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

EnumeratorObject

表示枚举数对象。Represents an enumerator object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

EnumeratorPrototype

提供 EnumeratorObject 对象的静态方法和属性。Provides static methods and properties for EnumeratorObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

Equality

执行比较运算。Performs comparison operations. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

ErrorConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ErrorObject

表示一个错误对象。Represents an error object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ErrorPrototype

提供 ErrorObject 对象的静态方法和属性。Provides static methods and properties for ErrorObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

Eval

计算 JScript 代码。Evaluates JScript code. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

EvalErrorObject

表示在使用 eval 方法时发生的错误。Represents an error that occurs when the eval method is used. 有关详细信息,请参阅 eval 方法 (Visual Studio - JScript)For more information, see eval Method (Visual Studio - JScript).

Expando

指示某个类或方法是 expando 类或方法。Indicates that a class or method is an expando class or method.

FieldAccessor

表示字段访问器。Represents a field accessor.

ForIn

表示 JScript for...in 语句。Represents the JScript for...in statement. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

FunctionConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

FunctionDeclaration

表示一个函数声明。Represents a function declaration. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

FunctionExpression

表示函数对象。Represents a function object. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

FunctionObject

表示函数对象。Represents a function object.

FunctionPrototype

提供 FunctionObject 对象的静态方法和属性。Provides static methods and properties for FunctionObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

FunctionWrapper

将函数成员绑定到对象。Binds the members of a function to an object.

GlobalObject

存储常量、数据类型信息、实用工具函数以及对基于原型的对象的引用。Stores constants, data type information, utility functions, and references to prototype-based objects. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

Globals

存储对所有全局可用类型的引用,并管理堆栈。Stores references to all globally available types and manages the stack. 此类属于编译和运行时状态类别。This class belongs to the compilation and run-time state category.

GlobalScope

表示全局范围。Represents the global scope.

Hide

指示方法或字段隐藏基类中的方法或字段。Indicates that a method or field hides a method or field in a base class.

Import

导入要在代码中使用的命名空间。Imports namespaces for use in code. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

In

确定对象是否包含在另一个对象中。Determines whether an object is contained in another object. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

Instanceof

确定是否可将一个对象强制转换为另一个对象的类型。Determines whether an object can be coerced to the type of another object. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

JSAuthor

提供用于在编辑器中创作 JScript 代码的服务。Provides services for authoring JScript code in an editor.

JSConstructor

包装 FunctionObjectWraps a FunctionObject.

JScriptCodeProvider

提供对 JScript 代码生成器和代码编译器的实例的访问。Provides access to instances of the JScript code generator and code compiler.

JScriptException

JScript 为向公共语言运行时 (CLR) 主机或程序通知发生错误而引发的异常。The exception that is thrown by JScript to notify a common language runtime (CLR) host or program that an error occurred. JScriptException 通常采用 JSError 枚举值。A JScriptException usually takes a JSError enumeration value.

JSField

支持 Jscript 中的所有字段。Supports all fields in JScript. 这是 JScript 定义的所有字段的基类。This is the base class for all fields that are defined by JScript. 此类属于名称绑定类别。This class belongs to the name binding category.

JSFieldInfo

包装 FieldInfo 对象。Wraps a FieldInfo object.

JSFunctionAttribute

JSFunctionAttributeEnum 一起使用,以批注 JScript 编译器生成的方法和构造函数的调用约定。Used with JSFunctionAttributeEnum to annotate the calling conventions of methods and constructors that are generated by the JScript compiler.

JSLocalField

表示局部变量。Represents a local variable.

JSMethod

表示 JScript 方法。Represents a JScript method. 此类属于名称绑定类别。This class belongs to the name binding category.

JSMethodInfo

包装 MethodInfo 对象。Wraps a MethodInfo object.

JSObject

表示 JScript 中的对象。Represents an object in JScript. 此类属于对象和函数类别。This class belongs to the objects and functions category.

JSParser

分析 JScript 代码。Parses JScript code. 此类属于扫描和分析类别。This class belongs to the scanning and parsing category.

JSPrototypeObject

将构造函数属性添加到 JSObject 以便实现早期绑定。Adds a constructor function property to a JSObject for early binding purposes. 此类属于对象和函数类别。This class belongs to the objects and functions category.

JSScanner

扫描 JScript 代码搜索单个代码单元或标记。Scans JScript code searching for individual units of code, or tokens. 此类属于扫描和分析类别。This class belongs to the scanning and parsing category.

JSVariableField

支持 JScript 中的变量字段。Supports variable fields in JScript. 这是参数、局部变量、全局变量和类成员的基类。This is the base class for parameters, local variables, global variables, and class members.

LateBinding

表示对类成员、可调用的表达式或变量名称的引用。Represents a reference to a class member, callable expression, or variable name. 在运行时,此类将尝试解析对正确值的引用。This class attempts to resolve the reference to the correct value at run time.

LenientArrayPrototype

存储对象,这些对象表示 ArrayPrototype 类的静态方法。Stores objects that represent the static methods of the ArrayPrototype class. LenientArrayPrototype 类属于内置对象模型类别。The LenientArrayPrototype class belongs to the built-in object model category.

LenientBooleanPrototype

存储对象,这些对象表示 BooleanPrototype 类的静态方法。Stores objects that represent the static methods of the BooleanPrototype class. LenientBooleanPrototype 类属于内置对象模型类别。The LenientBooleanPrototype class belongs to the built-in object model category.

LenientDateConstructor

存储对象,这些对象表示 DateConstructor 类的静态方法。Stores objects that represent the static methods of the DateConstructor class. LenientDateConstructor 类属于内置对象模型类别。The LenientDateConstructor class belongs to the built-in object model category.

LenientDatePrototype

存储对象,这些对象表示 DatePrototype 类的静态方法。Stores objects that represent the static methods of the DatePrototype class. LenientDatePrototype 类属于内置对象模型类别。The LenientDatePrototype class belongs to the built-in object model category.

LenientEnumeratorPrototype

存储对象,这些对象表示 EnumeratorPrototype 类的静态方法。Stores objects that represent the static methods of the EnumeratorPrototype class. LenientEnumeratorPrototype 类属于内置对象模型类别。The LenientEnumeratorPrototype class belongs to the built-in object model category.

LenientErrorPrototype

存储对象,这些对象表示 ErrorPrototype 类的静态方法。Stores objects that represent the static methods of the ErrorPrototype class. LenientErrorPrototype 类属于内置对象模型类别。The LenientErrorPrototype class belongs to the built-in object model category.

LenientFunctionPrototype

存储对象,这些对象表示 FunctionPrototype 类的静态方法。Stores objects that represent the static methods of the FunctionPrototype class. LenientFunctionPrototype 类属于内置对象模型类别。The LenientFunctionPrototype class belongs to the built-in object model category.

LenientGlobalObject

存储构造函数对象、数据类型信息,以及表示 GlobalObject 类的静态方法的对象。Stores constructor function objects, data type information, and objects that represent the static methods of the GlobalObject class. LenientGlobalObject 类属于内置对象模型类别。The LenientGlobalObject class belongs to the built-in object model category.

LenientMathObject

存储对象,这些对象表示 MathObject 类的静态方法。Stores objects that represent the static methods of the MathObject class. LenientMathObject 类属于内置对象模型类别。The LenientMathObject class belongs to the built-in object model category.

LenientNumberPrototype

存储对象,这些对象表示 NumberPrototype 类的静态方法。Stores objects that represent the static methods of the NumberPrototype class. LenientNumberPrototype 类属于内置对象模型类别。The LenientNumberPrototype class belongs to the built-in object model category.

LenientObjectPrototype

存储对象,这些对象表示 ObjectPrototype 类的静态方法。Stores objects that represent the static methods of the ObjectPrototype class. LenientObjectPrototype 类属于内置对象模型类别。The LenientObjectPrototype class belongs to the built-in object model category.

LenientRegExpPrototype

存储对象,这些对象表示 RegExpPrototype 类的静态方法。Stores objects that represent the static methods of the RegExpPrototype class. LenientRegExpPrototype 类属于内置对象模型类别。The LenientRegExpPrototype class belongs to the built-in object model category.

LenientStringConstructor

存储对象,这些对象表示 StringConstructor 类的静态方法。Stores objects that represent the static methods of the StringConstructor class. LenientStringConstructor 类属于内置对象模型类别。The LenientStringConstructor class belongs to the built-in object model category.

LenientStringPrototype

存储对象,这些对象表示 StringPrototype 类的静态方法。Stores objects that represent the static methods of the StringPrototype class. LenientStringPrototype 类属于内置对象模型类别。The LenientStringPrototype class belongs to the built-in object model category.

LenientVBArrayPrototype

存储对象,这些对象表示 VBArrayPrototype 类的静态方法。Stores objects that represent the static methods of the VBArrayPrototype class. LenientVBArrayPrototype 类属于内置对象模型类别。The LenientVBArrayPrototype class belongs to the built-in object model category.

MathObject

为三角函数、对数函数和其他通用数学函数提供常量和静态方法。Provides constants and static methods for trigonometric functions, logarithmic functions, and other common mathematical functions. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

MemberInfoList

维护 MemberInfo 元素的列表。Maintains a list of MemberInfo elements.

MethodInvoker

表示特定方法的调用程序。Represents the invoker for a particular method. JSMethodInfo 类用于调用方法。Used by the JSMethodInfo class to invoke methods.

Missing

表示已经实例化但尚未设置其值的变量的值。Represents the value of a variable that has been instantiated but that has not yet had its value set.

Namespace

表示命名空间。Represents a namespace.

NoContextException

在没有与 Context 关联的代码 JScriptException 时引发的异常。The exception that is thrown when there is no code Context associated with a JScriptException.

NotRecommended

指示不建议使用某个方法或字段。Indicates that a method or field is not recommended.

NumberConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

NumberObject

表示一个数字对象。Represents a number object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

NumberPrototype

提供 NumberObject 对象的静态方法和属性。Provides static methods and properties for NumberObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

NumericBinary

对数值操作数执行二元运算。Performs binary operations on numeric operands. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

NumericUnary

对数值操作数执行一元运算。Performs unary operations on numeric operands. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

ObjectConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

ObjectPrototype

提供 JSObject 对象的静态方法和属性。Provides static methods and properties for JSObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

Override

指示方法或字段重写基类中的方法或字段。Indicates that a method or field overrides a method or field in a base class.

Package

创建 JScript 代码包以供其他代码使用。Creates packages of JScript code for use by other code. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

ParserException

JScript 分析器使用此类表示分析器异常。This class is used by the JScript parser to represent parser exceptions.

Plus

执行加法和串联运算。Performs addition and concatenation operations. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

PostOrPrefixOperator

执行与前缀和后缀语法对应的增量和减量操作。Performs increment and decrement operations that correspond to the prefix and postfix syntax. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

RangeErrorObject

表示范围错误。Represents a range error. 例如,在使用不正确的索引访问数组元素时可能会发生范围错误。For example, a range error can occur when you use an incorrect index to access an array element.

ReferenceAttribute

表示对程序集的引用。Represents a reference to an assembly.

ReferenceErrorObject

表示引用错误。Represents a reference error. 例如,在引用未声明的变量时可能发生引用错误。For example, a reference error can occur when you reference an undeclared variable.

RegExpConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

RegExpMatch

表示正则表达式匹配的结果。Represents the results from a regular expression match. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

RegExpObject

表示一个正则表达式对象。Represents a regular expression object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

RegExpPrototype

提供 RegExpObject 对象的静态方法和属性。Provides static methods and properties for RegExpObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

Relational

执行关系比较操作。Performs relational comparison operations. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

ReturnOutOfFinally

表示当代码执行超出 finally 块返回时的异常状态。Represents the exception state when code execution returns out of a finally block.

Runtime

提供实用工具函数。Provides utility functions.

ScriptBlock

表示 JScript 代码块。Represents a block of JScript code. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

ScriptFunction

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 大多数构造函数类(比如 DateConstructorNumberConstructorStringConstructorObjectConstructor)都从此类继承。Most of the constructor function classes, such as DateConstructor, NumberConstructor, StringConstructor, and ObjectConstructor, inherit from this class. 此类属于对象和函数类别。This class belongs to the objects and functions category.

ScriptObject

支持所有 JScript 类。Supports all JScript classes. 这是所有 JScript 类的最终基类。This is the ultimate base class of all JScript classes. 此类属于对象和函数类别。This class belongs to the objects and functions category.

ScriptStream

表示数据流。Represents a stream of data. 此类将其数据发送到 COMCharStreamConsole 流。This class sends its data to either a COMCharStream or a Console stream.

SimpleHashtable

用于项内部存储的哈希表。A hash table for the internal storage of items.

StackFrame

表示用于执行代码的堆栈帧。Represents a stack frame for executing code. 此类包含用于解析范围的方法。This class contains methods for resolving scope. 它属于编译和运行时状态类别。It belongs to the compilation and run-time state category.

StrictEquality

执行比较运算。Performs comparison operations. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

StringConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

StringObject

表示一个字符串对象。Represents a string object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

StringPrototype

提供 StringObject 对象的静态方法和属性。Provides static methods and properties for StringObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

SuperTypeMembersSorter

存储基类和接口中的成员。Stores members from base classes and interfaces.

SyntaxErrorObject

表示语法错误。Represents a syntax error. 例如,如果省略分号,则可能发生语法错误。For example, a syntax error can occur when you omit a semicolon.

Throw

引发异常。Throws an exception. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

Try

标识要在错误处理范围中运行的代码块。Identifies blocks of code to run in error handling scopes. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

TypedArray

表示对 Array 类的可反射引用。Represents a reflectable reference to the Array class. 此类存储类型化数组的元素类型,但此类不存储数据。This class stores the element type of a typed array, but this class does not store data.

TypeErrorObject

表示类型错误。Represents a type error. 例如,将一种类型的对象传递给需要另一种类型的对象的方法时,可能会发生类型错误。For example, a type error can occur when you pass an object of one type to a method that expects an object of another type.

Typeof

确定对象的数据类型。Determines the data types of objects. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

TypeReflector

提供 GetMember(String, BindingFlags) 的实现,它比 GetMember(String, BindingFlags) 更快。Provides an implementation of GetMember(String, BindingFlags) that is faster than GetMember(String, BindingFlags).

UnaryOp

表示对单个操作数执行运算的类(比如 TypeofPostOrPrefixOperator)的基类。Represents the base class for classes that perform operations on single operands, such as Typeof and PostOrPrefixOperator. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

URIErrorObject

表示统一资源标识符 (URI) 错误。Represents a Uniform Resource Identifier (URI) error. 例如,在尝试对 URI 进行编码或解码时可能会发生 URI 错误。For example, a URI error can occur when you try to encode or decode a URI.

VBArrayConstructor

表示一个基于原型的对象,该对象由构造函数定义。Represents a prototype-based object that is defined by a constructor function. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

VBArrayObject

表示一个 VBArray 对象。Represents a VBArray object. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

VBArrayPrototype

提供 VBArrayObject 对象的静态方法和属性。Provides static methods and properties for VBArrayObject objects. 将通过传入对象(正在请求访问方法)的引用来调用此类的所有方法。All methods of this class are called by passing in a reference to the object that is requesting access to the method. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

VsaItem

表示添加到 .NET 脚本引擎的项。Represents items added to the .NET script engine. 其中包括代码项、引用项和全局项。This includes code items, reference items, and global items.

VsaItems

表示可按名称或索引编址的 IJSVsaItem 对象的集合。Represents a collection of IJSVsaItem objects that can be addressed either by name or by index.

With

表示 with 语句。Represents the with statement. 此类属于抽象语法树类别。This class belongs to the abstract syntax tree category.

接口

COMMemberInfo

定义使 JScript 能够与外部 COM 成员通信的方法。Defines methods that enable JScript to communicate with an external COM member. 外部 COM 实现使用此接口向 JScript 公开其对象,原因是 JScript 需要托管的 MemberInfo 才能绑定到外部对象。This interface is used by an external COM implementation to expose its objects to JScript because JScript requires a managed MemberInfo to bind to an external object.

IActivationObject

定义用于解析范围的方法。Defines methods for resolving scope. 此接口由参与范围层次结构的所有对象实现。This interface is implemented by all objects that take part in a scope hierarchy.

IAuthorServices

定义用于在编辑器中创作 JScript 代码的服务。Defines services for authoring JScript code in an editor.

IColorizeText

定义在编辑器中创作 JScript 代码时用于对文本着色的服务。Defines services for colorizing text when JScript code is being authored in an editor.

IDebugConvert

定义将数据从一种类型转换为另一种类型的一组实用工具方法。Defines a set of utility methods that convert data from one type to another. 包括用于将值转换为 String 对象(以使调试器可以显示它们)的方法。Includes methods that convert values to String objects so that they can be displayed by the debugger.

IDebugConvert2

定义将数据从一种类型转换为另一种类型的实用工具方法。Defines utility methods that convert data from one type to another. 包括用于将值转换为 String 对象(以使调试器可以显示它们)的方法。Includes methods that convert values to String objects so that they can be displayed by the debugger.

IDebuggerObject

定义提供调试器对象相关信息的方法。Defines methods that provide information about debugger objects. 此接口由调试器实现的所有 IReflect 对象实现。This interface is implemented by all IReflect objects that are implemented by the debugger. 当前,此接口仅用于标记这些对象,对于脚本引擎同样如此。Currently, this interface serves only to flag these objects as such to the scripting engine.

IDebugScriptScope

定义用于设置与全局范围关联的 this 值的方法。Defines methods that set the this value that is associated with the global scope. VsaEngine 使用。Used by the VsaEngine.

IDebugType

定义提供调试器对象相关信息的方法。Defines methods that provide information about debugger objects. 此接口由调试器对象实现,这些对象表示调试器目标中的类型。This interface is implemented by debugger objects that represent a type in the debugger target.

IDebugVsaScriptCodeItem

定义用于计算表达式和分析字符串的方法。Defines methods that evaluate expressions and parse strings. 此接口通常由一个对象实现,该对象表示代码块并通常由调试器调用。This interface is typically implemented by an object that represents a code block, and it is typically called by a debugger. 此接口提供 IActiveScript 宿主需要的额外功能。This interface provides extra functionality that is needed by an IActiveScript host.

IDefineEvent

定义活动脚本宿主需要的额外功能。Defines extra functionality that is needed by an active script host.

IEngine2

定义 IActiveScript 宿主需要的额外功能。Defines extra functionality that is needed by an IActiveScript host. VsaEngine 引擎实现。Implemented by the VsaEngine engine.

IErrorHandler

定义用于处理分析代码时发生的错误的方法。Defines methods to handle errors that occur when code is being parsed.

IMessageReceiver

定义从脚本引擎接收输出的方法。Defines methods that receive output from a scripting engine. 此接口充当回调对象,用于捕获将以其他方式转到控制台的输出。This interface acts as a callback object to capture output that would otherwise go to the console.

IMethodsCompletionInfo

这是一个标记接口,没有任何方法。This is a marker interface and has no methods.

INeedEngine

定义用于获取和设置对脚本引擎的引用的方法。Defines methods that get and set references to the scripting engine.

IObjectCompletionInfo

这是一个标记接口,没有任何方法。This is a marker interface and has no methods.

IParseText

定义在编辑器中创作 JScript 代码时用于分析文本的方法。Defines methods for parsing text when JScript code is being authored in an editor.

IRedirectOutput

定义用于捕获将以其他方式转到控制台的输出的方法。Defines methods that capture output that would otherwise go to the console. 此接口由 VsaEngine 实现。This interface is implemented by the VsaEngine.

ISite2

定义 VsaEngine 用于名称解析的方法。Defines methods that are used by the VsaEngine for name resolution. 提供 IActiveScript 宿主需要的额外功能。Provides extra functionality that is needed by an IActiveScript host.

ITokenColorInfo

定义用于对特定代码单元着色的属性。Defines properties for coloring specific units of code.

ITokenEnumerator

定义用于循环访问 ITokenColorInfo 对象集合的方法。Defines methods for iterating over a collection of ITokenColorInfo objects.

IVsaFullErrorInfo

定义属性以获取有关错误的信息。Defines properties to obtain information about errors. 此接口提供 IActiveScript 宿主需要的额外功能。This interface provides extra functionality that is needed by an IActiveScript host.

IVsaScriptCodeItem

定义 IActiveScript 宿主需要的额外功能。Defines extra functionality that is needed by an IActiveScript host.

IVsaScriptScope

定义用于解析范围的方法。Defines methods for resolving scope. VsaEngine 的全局范围对象实现此接口。The global scope object of the VsaEngine implements this interface.

IWrappedMember

定义用于访问对象的方法,成员是依据该对象定义的。Defines methods for accessing the object that a member is defined on.

MemberInfoInitializer

定义外部 COM 对象必须实现的方法。Defines methods that an external COM object must implement. 外部 COM 实现使用此接口向 JScript 公开其对象,原因是 JScript 需要托管的 MemberInfo 才能绑定到外部对象。This interface is used by an external COM implementation to expose its objects to JScript because JScript needs a managed MemberInfo to bind to an external object. 此接口由 COMFieldInfoCOMMethodInfoCOMPropertyInfo 实现。This interface is implemented by COMFieldInfo, COMMethodInfo, and COMPropertyInfo.

枚举

CmdLineError

指定在运行命令行编译器 jsc.exe 时发生的错误。 此枚举用于创建 CmdLineException 对象。This enumeration is used to create CmdLineException objects.

ErrorType

指定 JScript 错误类型。Specifies the JScript error types.

JSBuiltin

指定内置 JScript 函数。 这些函数对应于内部 JScript 对象的静态方法。 此枚举的成员用于创建 JSFunctionAttribute 对象。The members of this enumeration are used to create JSFunctionAttribute objects.

JSError

指定 JScript 错误消息。Specifies the JScript error messages. 此类属于编译和运行时状态类别。This class belongs to the compilation and run-time state category.

JSFunctionAttributeEnum

指定由 JScript 编译器生成的函数的调用约定。Specifies the calling conventions of functions that are generated by the JScript compiler. JSFunctionAttribute 自定义特性一起使用。Used with the JSFunctionAttribute custom attribute.

JSToken

指定组成 JScript 语言的单个代码单元或标记。Specifies the individual units of code, or tokens, that make up the JScript language.

SourceState

指定源代码文本的状态。Specifies the state of source code text. 此类与提供信息以在编辑器中对 JScript 代码进行着色的其他类一起使用。This class is used together with other classes that provide information to color JScript code in an editor.

TokenColor

指定在编辑器中对文本着色时单个代码单元应具有的颜色。Specifies the colors that individual units of code should have when text is being colorized in an editor. Color 对象的 ITokenColorInfo 属性使用此枚举的成员。The members of this enumeration are used by the Color property of ITokenColorInfo objects.

VSAITEMTYPE2

扩展 JSVsaItemType 枚举。Extends the JSVsaItemType enumeration. 提供 IActiveScript 宿主需要的额外功能。Provides extra functionality that is needed by an IActiveScript host.