This documentation is archived and is not being maintained.

IEngine2 Interface

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.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

[ComVisibleAttribute(true)]
[GuidAttribute(L"BFF6C97F-0705-4394-88B8-A03A4B8B4CD7")]
public interface class IEngine2

The IEngine2 type exposes the following members.

  NameDescription
Public methodCloneWhen 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.
Public methodCompileEmptyWhen 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.
Public methodConnectEventsWhen 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.
Public methodDisconnectEventsWhen implemented in a class, directs the engine to unhook event sources from event handlers. This is not implemented in JScript.
Public methodGetAssemblyWhen implemented in a class, gets the compiled assembly that is produced by the compilation step.
Public methodGetGlobalScopeWhen implemented in a class, gets the global scope object.
Public methodGetModuleWhen implemented in a class, gets the code module from the compiled assembly.
Public methodInitVsaEngineWhen implemented in a class, initializes the VsaEngine.
Public methodInterruptWhen implemented in a class, calls Abort on the thread that is running the script code.
Public methodRegisterEventSourceWhen 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.
Public methodRestartWhen 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.
Public methodRunWhen 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.
Public methodRunEmptyWhen implemented in a class, runs the compiled code in the current AppDomain.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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: