IEngine2 IEngine2 IEngine2 IEngine2 Interface

Definition

Defines extra functionality that is needed by an IActiveScript host. Implemented by the VsaEngine engine.

This API supports the product infrastructure and is not intended to be used directly from your code.

public interface class IEngine2
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("BFF6C97F-0705-4394-88B8-A03A4B8B4CD7")]
public interface IEngine2
type IEngine2 = interface
Public Interface IEngine2
Derived
Attributes

Methods

Clone(AppDomain) Clone(AppDomain) Clone(AppDomain) Clone(AppDomain)

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() CompileEmpty() CompileEmpty() 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() ConnectEvents() ConnectEvents() 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() DisconnectEvents() DisconnectEvents() DisconnectEvents()

When implemented in a class, directs the engine to unhook event sources from event handlers. This is not implemented in JScript.

GetAssembly() GetAssembly() GetAssembly() GetAssembly()

When implemented in a class, gets the compiled assembly that is produced by the compilation step.

GetGlobalScope() GetGlobalScope() GetGlobalScope() GetGlobalScope()

When implemented in a class, gets the global scope object.

GetModule() GetModule() GetModule() GetModule()

When implemented in a class, gets the code module from the compiled assembly.

InitVsaEngine(String, IJSVsaSite) InitVsaEngine(String, IJSVsaSite) InitVsaEngine(String, IJSVsaSite) InitVsaEngine(String, IJSVsaSite)

When implemented in a class, initializes the VsaEngine.

InitVsaEngine(String, IVsaSite) InitVsaEngine(String, IVsaSite) InitVsaEngine(String, IVsaSite) InitVsaEngine(String, IVsaSite)

When implemented in a class, initializes the VsaEngine.

Interrupt() Interrupt() Interrupt() Interrupt()

When implemented in a class, calls Abort() on the thread that is running the script code.

RegisterEventSource(String) RegisterEventSource(String) RegisterEventSource(String) RegisterEventSource(String)

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() Restart() Restart() 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(AppDomain) Run(AppDomain) Run(AppDomain) Run(AppDomain)

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() RunEmpty() RunEmpty() RunEmpty()

When implemented in a class, runs the compiled code in the current AppDomain.

Applies to

See also