Szerkesztés

Megosztás a következőn keresztül:


Microsoft.JScript Namespace

Contains classes that support compilation and code generation using the JScript language.

Classes

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

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

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

Wraps an array to create a JScript ArrayObject. This class wraps either a .NET Framework Array object or a JScript ArrayObject object.

AssemblyCustomAttributeList

This class is used by the JScript parser to store the attributes that are assigned to an assembly.

AST

Represents the abstract syntax tree that is used to parse JScript code.

ASTList

Maintains a list of AST elements. This class belongs to the abstract syntax tree category.

BinaryOp

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

Represents a block in JScript. 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. 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

Represents a Boolean object. This class belongs to the built-in object model category.

BooleanPrototype

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

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

Represents errors that occur when you run the command-line compiler jsc.exe.

CmdLineOptionParser

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

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

Enables JScript to communicate with an external COM field. 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

Enables JScript to communicate with an external COM method. 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

Enables JScript to communicate with an external COM property. 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

Represents JScript source code. This class belongs to the compilation and run-time state category.

ContinueOutOfFinally

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

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

This class is used by the JScript parser to represent a breakpoint in a debugger.

DebugConvert

Converts data from one type to another. Includes methods that convert values to String objects so that they can be displayed by the debugger.

DocumentContext

Represents a source code file that is written in the JScript language.

DynamicFieldInfo

Represents field information. 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

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

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

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

Evaluates JScript code. This class belongs to the abstract syntax tree category.

EvalErrorObject

Represents an error that occurs when the eval method is used. For more information, see eval Method (Visual Studio - JScript).

Expando

Indicates that a class or method is an expando class or method.

FieldAccessor

Represents a field accessor.

ForIn

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

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

Provides services for authoring JScript code in an editor.

JSConstructor

Wraps a FunctionObject.

JScriptCodeProvider

Provides access to instances of the JScript code generator and code compiler.

JScriptException

The exception that is thrown by JScript to notify a common language runtime (CLR) host or program that an error occurred. A JScriptException usually takes a JSError enumeration value.

JSField

Supports all fields in JScript. This is the base class for all fields that are defined by JScript. This class belongs to the name binding category.

JSFieldInfo

Wraps a FieldInfo object.

JSFunctionAttribute

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

Represents a JScript method. This class belongs to the name binding category.

JSMethodInfo

Wraps a MethodInfo object.

JSObject

Represents an object in JScript. This class belongs to the objects and functions category.

JSParser

Parses JScript code. This class belongs to the scanning and parsing category.

JSPrototypeObject

Adds a constructor function property to a JSObject for early binding purposes. This class belongs to the objects and functions category.

JSScanner

Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category.

JSVariableField

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

Stores objects that represent the static methods of the ArrayPrototype class. The LenientArrayPrototype class belongs to the built-in object model category.

LenientBooleanPrototype

Stores objects that represent the static methods of the BooleanPrototype class. The LenientBooleanPrototype class belongs to the built-in object model category.

LenientDateConstructor

Stores objects that represent the static methods of the DateConstructor class. The LenientDateConstructor class belongs to the built-in object model category.

LenientDatePrototype

Stores objects that represent the static methods of the DatePrototype class. The LenientDatePrototype class belongs to the built-in object model category.

LenientEnumeratorPrototype

Stores objects that represent the static methods of the EnumeratorPrototype class. The LenientEnumeratorPrototype class belongs to the built-in object model category.

LenientErrorPrototype

Stores objects that represent the static methods of the ErrorPrototype class. The LenientErrorPrototype class belongs to the built-in object model category.

LenientFunctionPrototype

Stores objects that represent the static methods of the FunctionPrototype class. The LenientFunctionPrototype class belongs to the built-in object model category.

LenientGlobalObject

Stores constructor function objects, data type information, and objects that represent the static methods of the GlobalObject class. The LenientGlobalObject class belongs to the built-in object model category.

LenientMathObject

Stores objects that represent the static methods of the MathObject class. The LenientMathObject class belongs to the built-in object model category.

LenientNumberPrototype

Stores objects that represent the static methods of the NumberPrototype class. The LenientNumberPrototype class belongs to the built-in object model category.

LenientObjectPrototype

Stores objects that represent the static methods of the ObjectPrototype class. The LenientObjectPrototype class belongs to the built-in object model category.

LenientRegExpPrototype

Stores objects that represent the static methods of the RegExpPrototype class. The LenientRegExpPrototype class belongs to the built-in object model category.

LenientStringConstructor

Stores objects that represent the static methods of the StringConstructor class. The LenientStringConstructor class belongs to the built-in object model category.

LenientStringPrototype

Stores objects that represent the static methods of the StringPrototype class. The LenientStringPrototype class belongs to the built-in object model category.

LenientVBArrayPrototype

Stores objects that represent the static methods of the VBArrayPrototype class. 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

Maintains a list of MemberInfo elements.

MethodInvoker

Represents the invoker for a particular method. 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

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

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

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

Creates packages of JScript code for use by other code. This class belongs to the abstract syntax tree category.

ParserException

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

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

Represents the exception state when code execution returns out of a finally block.

Runtime

Provides utility functions.

ScriptBlock

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. 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

Supports all JScript classes. 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. 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

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

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

Provides an implementation of GetMember(String, BindingFlags) that is faster than GetMember(String, BindingFlags).

UnaryOp

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

Represents a Uniform Resource Identifier (URI) error. 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

Represents a VBArray object. This class belongs to the built-in object model category.

VBArrayPrototype

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

Represents items added to the .NET script engine. This includes code items, reference items, and global items.

VsaItems

Represents a collection of IJSVsaItem objects that can be addressed either by name or by index.

With

Represents the with statement. This class belongs to the abstract syntax tree category.

Interfaces

COMMemberInfo

Defines methods that enable JScript to communicate with an external COM member. 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

Defines services for authoring JScript code in an editor.

IColorizeText

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. 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. 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. 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

Defines methods that set the this value that is associated with the global scope. 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. 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

Defines extra functionality that is needed by an IActiveScript host. 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

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. This interface is implemented by the VsaEngine.

ISite2

Defines methods that are used by the VsaEngine for name resolution. Provides extra functionality that is needed by an IActiveScript host.

ITokenColorInfo

Defines properties for coloring specific units of code.

ITokenEnumerator

Defines methods for iterating over a collection of ITokenColorInfo objects.

IVsaFullErrorInfo

Defines properties to obtain information about errors. This interface provides extra functionality that is needed by an IActiveScript host.

IVsaScriptCodeItem

Defines extra functionality that is needed by an IActiveScript host.

IVsaScriptScope

Defines methods for resolving scope. The global scope object of the VsaEngine implements this interface.

IWrappedMember

Defines methods for accessing the object that a member is defined on.

MemberInfoInitializer

Defines methods that an external COM object must implement. 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. This interface is implemented by COMFieldInfo, COMMethodInfo, and COMPropertyInfo.

Enums

CmdLineError

Specifies errors that occur when you run the command-line compiler jsc.exe. This enumeration is used to create CmdLineException objects.

ErrorType

Specifies the JScript error types.

JSBuiltin

Specifies the built-in JScript functions. These functions correspond to the static methods of the intrinsic JScript objects. The members of this enumeration are used to create JSFunctionAttribute objects.

JSError

Specifies the JScript error messages. This class belongs to the compilation and run-time state category.

JSFunctionAttributeEnum

Specifies the calling conventions of functions that are generated by the JScript compiler. Used with the JSFunctionAttribute custom attribute.

JSToken

Specifies the individual units of code, or tokens, that make up the JScript language.

SourceState

Specifies the state of source code text. 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. The members of this enumeration are used by the Color property of ITokenColorInfo objects.

VSAITEMTYPE2

Extends the JSVsaItemType enumeration. Provides extra functionality that is needed by an IActiveScript host.