Expand Minimize

Microsoft.JScript Namespace

The Microsoft.JScript namespace contains classes that support compilation and code generation using the JScript language.

  ClassDescription
Public classActivationObjectInfrastructure. 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.
Public classActiveXObjectConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classArgumentsObjectInfrastructure. 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.
Public classArrayConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classArrayLiteralInfrastructure. This class is used by the JScript parser to represent an array literal.
Public classArrayObjectInfrastructure. Represents an array object. This class belongs to the built-in object model category.
Public classArrayPrototypeInfrastructure. 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.
Public classArrayWrapperInfrastructure. Wraps an array to create a JScript ArrayObject. This class wraps either a .NET Framework Array object or a JScript ArrayObject object.
Public classAssemblyCustomAttributeListInfrastructure. This class is used by the JScript parser to store the attributes that are assigned to an assembly.
Public classASTInfrastructure. Represents the abstract syntax tree that is used to parse JScript code.
Public classASTListInfrastructure. Maintains a list of AST elements. This class belongs to the abstract syntax tree category.
Public classBinaryOpInfrastructure. 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.
Public classBindingInfrastructure. 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.
Public classBitwiseBinaryInfrastructure. Performs bitwise binary operations. This class belongs to the abstract syntax tree category.
Public classBlockInfrastructure. 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.
Public classBlockScopeInfrastructure. 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.
Public classBooleanConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classBooleanObjectInfrastructure. Represents a Boolean object. This class belongs to the built-in object model category.
Public classBooleanPrototypeInfrastructure. 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.
Public classBreakOutOfFinallyInfrastructure. Represents the exception state when code execution breaks out of a finally block.
Public classClosureInfrastructure. Represents a closure function. This class belongs to the objects and functions category.
Public classCmdLineExceptionInfrastructure. Represents errors that occur when you run the command-line compiler jsc.exe.
Public classCmdLineOptionParserInfrastructure. Determines whether options that are specified to the command-line compiler jsc.exe are correctly formed, and reads the arguments if any are included.
Public classCOMCharStreamInfrastructure. 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.
Public classCOMFieldInfoInfrastructure. 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.
Public classCOMMethodInfoInfrastructure. 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.
Public classCOMPropertyInfoInfrastructure. 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.
Public classContextInfrastructure. Represents JScript source code. This class belongs to the compilation and run-time state category.
Public classContinueOutOfFinallyInfrastructure. Represents the exception state when code execution continues out of a finally block.
Public classConvertInfrastructure. Converts data from one type to another. This is a utility class.
Public classDateConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classDateObjectInfrastructure. Represents a date object. This class belongs to the built-in object model category.
Public classDatePrototypeInfrastructure. 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.
Public classDebugBreakInfrastructure. This class is used by the JScript parser to represent a breakpoint in a debugger.
Public classDebugConvertInfrastructure. Converts data from one type to another. Includes methods that convert values to String objects so that they can be displayed by the debugger.
Public classDocumentContextInfrastructure. Represents a source code file that is written in the JScript language.
Public classDynamicFieldInfoInfrastructure. Represents field information. This class is used to return fields of expando classes and script arrays to the debugger.
Public classEmptyInfrastructure. Represents the value of a variable that has not been instantiated.
Public classEndOfFileInfrastructure. 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.
Public classEnumeratorConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classEnumeratorObjectInfrastructure. Represents an enumerator object. This class belongs to the built-in object model category.
Public classEnumeratorPrototypeInfrastructure. 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.
Public classEqualityInfrastructure. Performs comparison operations. This class belongs to the abstract syntax tree category.
Public classErrorConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classErrorObjectInfrastructure. Represents an error object. This class belongs to the built-in object model category.
Public classErrorPrototypeInfrastructure. 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.
Public classEvalInfrastructure. Evaluates JScript code. This class belongs to the abstract syntax tree category.
Public classEvalErrorObjectInfrastructure. Represents an error that occurs when the eval method is used. For more information, see eval Method (Visual Studio - JScript).
Public classExpandoInfrastructure. Indicates that a class or method is an expando class or method.
Public classFieldAccessorInfrastructure. Represents a field accessor.
Public classForInInfrastructure. Represents the JScript for...in statement. This class belongs to the abstract syntax tree category.
Public classFunctionConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classFunctionDeclarationInfrastructure. Represents a function declaration. This class belongs to the abstract syntax tree category.
Public classFunctionExpressionInfrastructure. Represents a function object. This class belongs to the abstract syntax tree category.
Public classFunctionObjectInfrastructure. Represents a function object.
Public classFunctionPrototypeInfrastructure. 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.
Public classFunctionWrapperInfrastructure. Binds the members of a function to an object.
Public classGlobalObjectInfrastructure. Stores constants, data type information, utility functions, and references to prototype-based objects. This class belongs to the built-in object model category.
Public classGlobalsInfrastructure. Stores references to all globally available types and manages the stack. This class belongs to the compilation and run-time state category.
Public classGlobalScopeInfrastructure. Represents the global scope.
Public classHideInfrastructure. Indicates that a method or field hides a method or field in a base class.
Public classImportInfrastructure. Imports namespaces for use in code. This class belongs to the abstract syntax tree category.
Public classInInfrastructure. Determines whether an object is contained in another object. This class belongs to the abstract syntax tree category.
Public classInstanceofInfrastructure. Determines whether an object can be coerced to the type of another object. This class belongs to the abstract syntax tree category.
Public classJSAuthorInfrastructure. Provides services for authoring JScript code in an editor.
Public classJSConstructorInfrastructure. Wraps a FunctionObject.
Public classJScriptCodeProviderInfrastructure. Provides access to instances of the JScript code generator and code compiler.
Public classJScriptExceptionInfrastructure. 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.
Public classJSFieldInfrastructure. 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.
Public classJSFieldInfoInfrastructure. Wraps a FieldInfo object.
Public classJSFunctionAttributeInfrastructure. Used with JSFunctionAttributeEnum to annotate the calling conventions of methods and constructors that are generated by the JScript compiler.
Public classJSLocalFieldInfrastructure. Represents a local variable.
Public classJSMethodInfrastructure. Represents a JScript method. This class belongs to the name binding category.
Public classJSMethodInfoInfrastructure. Wraps a MethodInfo object.
Public classJSObjectInfrastructure. Represents an object in JScript. This class belongs to the objects and functions category.
Public classJSParserInfrastructure. Parses JScript code. This class belongs to the scanning and parsing category. For more information about scanning and parsing, see Create a Language Compiler for the .NET Framework.
Public classJSPrototypeObjectInfrastructure. Adds a constructor function property to a JSObject for early binding purposes. This class belongs to the objects and functions category.
Public classJSScannerInfrastructure. Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category. For more information about scanning and parsing, see Create a Language Compiler for the .NET Framework.
Public classJSVariableFieldInfrastructure. Supports variable fields in JScript. This is the base class for parameters, local variables, global variables, and class members.
Public classLateBindingInfrastructure. 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.
Public classLenientArrayPrototypeInfrastructure. Stores objects that represent the static methods of the ArrayPrototype class. The LenientArrayPrototype class belongs to the built-in object model category.
Public classLenientBooleanPrototypeInfrastructure. Stores objects that represent the static methods of the BooleanPrototype class. The LenientBooleanPrototype class belongs to the built-in object model category.
Public classLenientDateConstructorInfrastructure. Stores objects that represent the static methods of the DateConstructor class. The LenientDateConstructor class belongs to the built-in object model category.
Public classLenientDatePrototypeInfrastructure. Stores objects that represent the static methods of the DatePrototype class. The LenientDatePrototype class belongs to the built-in object model category.
Public classLenientEnumeratorPrototypeInfrastructure. Stores objects that represent the static methods of the EnumeratorPrototype class. The LenientEnumeratorPrototype class belongs to the built-in object model category.
Public classLenientErrorPrototypeInfrastructure. Stores objects that represent the static methods of the ErrorPrototype class. The LenientErrorPrototype class belongs to the built-in object model category.
Public classLenientFunctionPrototypeInfrastructure. Stores objects that represent the static methods of the FunctionPrototype class. The LenientFunctionPrototype class belongs to the built-in object model category.
Public classLenientGlobalObjectInfrastructure. 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.
Public classLenientMathObjectInfrastructure. Stores objects that represent the static methods of the MathObject class. The LenientMathObject class belongs to the built-in object model category.
Public classLenientNumberPrototypeInfrastructure. Stores objects that represent the static methods of the NumberPrototype class. The LenientNumberPrototype class belongs to the built-in object model category.
Public classLenientObjectPrototypeInfrastructure. Stores objects that represent the static methods of the ObjectPrototype class. The LenientObjectPrototype class belongs to the built-in object model category.
Public classLenientRegExpPrototypeInfrastructure. Stores objects that represent the static methods of the RegExpPrototype class. The LenientRegExpPrototype class belongs to the built-in object model category.
Public classLenientStringConstructorInfrastructure. Stores objects that represent the static methods of the StringConstructor class. The LenientStringConstructor class belongs to the built-in object model category.
Public classLenientStringPrototypeInfrastructure. Stores objects that represent the static methods of the StringPrototype class. The LenientStringPrototype class belongs to the built-in object model category.
Public classLenientVBArrayPrototypeInfrastructure. Stores objects that represent the static methods of the VBArrayPrototype class. The LenientVBArrayPrototype class belongs to the built-in object model category.
Public classMathObjectInfrastructure. 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.
Public classMemberInfoListInfrastructure. Maintains a list of MemberInfo elements.
Public classMethodInvokerInfrastructure. Represents the invoker for a particular method. Used by the JSMethodInfo class to invoke methods.
Public classMissingInfrastructure. Represents the value of a variable that has been instantiated but that has not yet had its value set.
Public classNamespaceInfrastructure. Represents a namespace.
Public classNoContextExceptionInfrastructure. The exception that is thrown when there is no code Context associated with a JScriptException.
Public classNotRecommendedInfrastructure. Indicates that a method or field is not recommended.
Public classNumberConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classNumberObjectInfrastructure. Represents a number object. This class belongs to the built-in object model category.
Public classNumberPrototypeInfrastructure. 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.
Public classNumericBinaryInfrastructure. Performs binary operations on numeric operands. This class belongs to the abstract syntax tree category.
Public classNumericUnaryInfrastructure. Performs unary operations on numeric operands. This class belongs to the abstract syntax tree category.
Public classObjectConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classObjectPrototypeInfrastructure. 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.
Public classOverrideInfrastructure. Indicates that a method or field overrides a method or field in a base class.
Public classPackageInfrastructure. Creates packages of JScript code for use by other code. This class belongs to the abstract syntax tree category.
Public classParserExceptionInfrastructure. This class is used by the JScript parser to represent parser exceptions.
Public classPlusInfrastructure. Performs addition and concatenation operations. This class belongs to the abstract syntax tree category.
Public classPostOrPrefixOperatorInfrastructure. Performs increment and decrement operations that correspond to the prefix and postfix syntax. This class belongs to the abstract syntax tree category.
Public classRangeErrorObjectInfrastructure. Represents a range error. For example, a range error can occur when you use an incorrect index to access an array element.
Public classReferenceAttributeInfrastructure. Represents a reference to an assembly.
Public classReferenceErrorObjectInfrastructure. Represents a reference error. For example, a reference error can occur when you reference an undeclared variable.
Public classRegExpConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classRegExpMatchInfrastructure. Represents the results from a regular expression match. This class belongs to the built-in object model category.
Public classRegExpObjectInfrastructure. Represents a regular expression object. This class belongs to the built-in object model category.
Public classRegExpPrototypeInfrastructure. 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.
Public classRelationalInfrastructure. Performs relational comparison operations. This class belongs to the abstract syntax tree category.
Public classReturnOutOfFinallyInfrastructure. Represents the exception state when code execution returns out of a finally block.
Public classRuntimeInfrastructure. Provides utility functions.
Public classScriptBlockInfrastructure. Represents a block of JScript code. This class belongs to the abstract syntax tree category.
Public classScriptFunctionInfrastructure. 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.
Public classScriptObjectInfrastructure. Supports all JScript classes. This is the ultimate base class of all JScript classes. This class belongs to the objects and functions category.
Public classScriptStreamInfrastructure. Represents a stream of data. This class sends its data to either a COMCharStream or a Console stream.
Public classSimpleHashtableInfrastructure. A hash table for the internal storage of items.
Public classStackFrameInfrastructure. Represents a stack frame for executing code. This class contains methods for resolving scope. It belongs to the compilation and run-time state category.
Public classStrictEqualityInfrastructure. Performs comparison operations. This class belongs to the abstract syntax tree category.
Public classStringConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classStringObjectInfrastructure. Represents a string object. This class belongs to the built-in object model category.
Public classStringPrototypeInfrastructure. 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.
Public classSuperTypeMembersSorterInfrastructure. Stores members from base classes and interfaces.
Public classSyntaxErrorObjectInfrastructure. Represents a syntax error. For example, a syntax error can occur when you omit a semicolon.
Public classThrowInfrastructure. Throws an exception. This class belongs to the abstract syntax tree category.
Public classTryInfrastructure. Identifies blocks of code to run in error handling scopes. This class belongs to the abstract syntax tree category.
Public classTypedArrayInfrastructure. 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.
Public classTypeErrorObjectInfrastructure. 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.
Public classTypeofInfrastructure. Determines the data types of objects. This class belongs to the abstract syntax tree category.
Public classTypeReflectorInfrastructure. Provides an implementation of GetMember that is faster than GetMember.
Public classUnaryOpInfrastructure. 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.
Public classURIErrorObjectInfrastructure. Represents a Uniform Resource Identifier (URI) error. For example, a URI error can occur when you try to encode or decode a URI.
Public classVBArrayConstructorInfrastructure. Represents a prototype-based object that is defined by a constructor function. This class belongs to the built-in object model category.
Public classVBArrayObjectInfrastructure. Represents a VBArray object. This class belongs to the built-in object model category.
Public classVBArrayPrototypeInfrastructure. 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.
Public classVsaItemInfrastructure. Represents items added to the .NET script engine. This includes code items, reference items, and global items.
Public classVsaItemsInfrastructure. Represents a collection of IVsaItem objects that can be addressed either by name or by index.
Public classWithInfrastructure. Represents the with statement. This class belongs to the abstract syntax tree category.

  InterfaceDescription
Public interfaceCOMMemberInfoInfrastructure. 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.
Public interfaceIActivationObjectInfrastructure. Defines methods for resolving scope. This interface is implemented by all objects that take part in a scope hierarchy.
Public interfaceIAuthorServicesInfrastructure. Defines services for authoring JScript code in an editor.
Public interfaceIColorizeTextInfrastructure. Defines services for colorizing text when JScript code is being authored in an editor.
Public interfaceIDebugConvertInfrastructure. 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.
Public interfaceIDebugConvert2Infrastructure. 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.
Public interfaceIDebuggerObjectInfrastructure. 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.
Public interfaceIDebugScriptScopeInfrastructure. Defines methods that set the this value that is associated with the global scope. Used by the VsaEngine.
Public interfaceIDebugTypeInfrastructure. Defines methods that provide information about debugger objects. This interface is implemented by debugger objects that represent a type in the debugger target.
Public interfaceIDebugVsaScriptCodeItemInfrastructure. 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.
Public interfaceIDefineEventInfrastructure. Defines extra functionality that is needed by an active script host.
Public interfaceIEngine2Infrastructure. Defines extra functionality that is needed by an IActiveScript host. Implemented by the VsaEngine engine.
Public interfaceIErrorHandlerInfrastructure. Defines methods to handle errors that occur when code is being parsed.
Public interfaceIMessageReceiverInfrastructure. 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.
Public interfaceIMethodsCompletionInfoInfrastructure. This is a marker interface and has no methods.
Public interfaceINeedEngineInfrastructure. Defines methods that get and set references to the scripting engine.
Public interfaceIObjectCompletionInfoInfrastructure. This is a marker interface and has no methods.
Public interfaceIParseTextInfrastructure. Defines methods for parsing text when JScript code is being authored in an editor.
Public interfaceIRedirectOutputInfrastructure. Defines methods that capture output that would otherwise go to the console. This interface is implemented by the VsaEngine.
Public interfaceISite2Infrastructure. Defines methods that are used by the VsaEngine for name resolution. Provides extra functionality that is needed by an IActiveScript host.
Public interfaceITokenColorInfoInfrastructure. Defines properties for coloring specific units of code.
Public interfaceITokenEnumeratorInfrastructure. Defines methods for iterating over a collection of ITokenColorInfo objects.
Public interfaceIVsaFullErrorInfoInfrastructure. Defines properties to obtain information about errors. This interface provides extra functionality that is needed by an IActiveScript host.
Public interfaceIVsaScriptCodeItemInfrastructure. Defines extra functionality that is needed by an IActiveScript host.
Public interfaceIVsaScriptScopeInfrastructure. Defines methods for resolving scope. The global scope object of the VsaEngine implements this interface.
Public interfaceIWrappedMemberInfrastructure. Defines methods for accessing the object that a member is defined on.
Public interfaceMemberInfoInitializerInfrastructure. 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.

  EnumerationDescription
Public enumerationCmdLineErrorInfrastructure. Specifies errors that occur when you run the command-line compiler jsc.exe. This enumeration is used to create CmdLineException objects.
Public enumerationErrorTypeInfrastructure. Specifies the JScript error types.
Public enumerationJSBuiltinInfrastructure. 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.
Public enumerationJSErrorInfrastructure. Specifies the JScript error messages. This class belongs to the compilation and run-time state category.
Public enumerationJSFunctionAttributeEnumInfrastructure. Specifies the calling conventions of functions that are generated by the JScript compiler. Used with the JSFunctionAttribute custom attribute.
Public enumerationJSTokenInfrastructure. Specifies the individual units of code, or tokens, that make up the JScript language.
Public enumerationSourceStateInfrastructure. 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.
Public enumerationTokenColorInfrastructure. 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.
Public enumerationVSAITEMTYPE2Infrastructure. Extends the VsaItemType enumeration. Provides extra functionality that is needed by an IActiveScript host.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft