This documentation is archived and is not being maintained.
IEngine2 Interface
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Defines extra functionality that is needed by an IActiveScript host. Implemented by the VsaEngine engine.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The IEngine2 type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Clone | When implemented in a class, creates a new identical engine that runs in a new application domain, with the same compiled state and named items. This is not implemented in JScript. |
![]() | CompileEmpty | When implemented in a class, triggers compilation of all the state currently in the engine. All references, code items, host items, and resources are run through the compiler. |
![]() | ConnectEvents | When implemented in a class, communicates to the engine that it can connect any registered event sources that have events to any global event handlers. This is not implemented in JScript. |
![]() | DisconnectEvents | When implemented in a class, directs the engine to unhook event sources from event handlers. This is not implemented in JScript. |
![]() | GetAssembly | When implemented in a class, gets the compiled assembly that is produced by the compilation step. |
![]() | GetGlobalScope | When implemented in a class, gets the global scope object. |
![]() | GetModule | When implemented in a class, gets the code module from the compiled assembly. |
![]() | InitVsaEngine | When implemented in a class, initializes the VsaEngine. |
![]() | Interrupt | When implemented in a class, calls Abort on the thread that is running the script code. |
![]() | RegisterEventSource | When implemented in a class, specifies the name of an item that is marked as an event source, so that the ConnectEvents method can determine which events to connect. This is not implemented in JScript. |
![]() | Restart | When implemented in a class, this method is called by the debugger when it has to reset the engine to a clean state before evaluating a new expression. The method resets the added items and the global scope back to their original state. |
![]() | Run | When implemented in a class, runs the compiled code in the specified application domain. This is not implemented in JScript because managed engines do not support running code in user-provided application domains. |
![]() | RunEmpty | When implemented in a class, runs the compiled code in the current AppDomain. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
