Bewerken

Delen via


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
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("BFF6C97F-0705-4394-88B8-A03A4B8B4CD7")>]
type IEngine2 = interface
Public Interface IEngine2
Derived
Attributes

Methods

Clone(AppDomain)

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

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

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

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

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

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

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

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

GetAssembly()

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

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

GetGlobalScope()

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

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

GetModule()

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

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

InitVsaEngine(String, IJSVsaSite)

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

When implemented in a class, initializes the VsaEngine.

InitVsaEngine(String, IVsaSite)

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

When implemented in a class, initializes the VsaEngine.

Interrupt()

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

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

RegisterEventSource(String)

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

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

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

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)

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

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

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

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

Applies to

See also