IJSVsaEngine IJSVsaEngine IJSVsaEngine IJSVsaEngine Interface

Definition

Warning

This API is now obsolete.

Defines the methods and properties that a script engine must support and provides programmatic access to the script engine.

public interface class IJSVsaEngine
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("8FA2C97B-47E4-4A31-A7F5-FF39D1195CD9")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSVsaEngine
type IJSVsaEngine = interface
Public Interface IJSVsaEngine
Derived
Attributes

Properties

Assembly Assembly Assembly Assembly

Gets a reference to the running assembly generated by Run method.

Evidence Evidence Evidence Evidence

Provides evidence for the purpose of validating the current object's identity.

GenerateDebugInfo GenerateDebugInfo GenerateDebugInfo GenerateDebugInfo

Sets or gets a Boolean value that signifies whether the script engine produces debug information when the Compile method is called.

IsCompiled IsCompiled IsCompiled IsCompiled

Gets or sets a value that indicates whether the source is compiled.

IsDirty IsDirty IsDirty IsDirty

Gets or sets a value that indicates whether the current in-memory representation of the item differs from the persisted representation.

IsRunning IsRunning IsRunning IsRunning

Gets a Boolean value that reports whether the script engine is currently in run mode.

Items Items Items Items

Gets the collection of IJSVsaItem objects, which represent all items added to the script engine.

Language Language Language Language

Gets the name of the programming language supported by the script engine.

LCID LCID LCID LCID

Gets or sets the geographical locale and language in which to report exception messages.

Name Name Name Name

Sets or gets the display name of the script engine.

RootMoniker RootMoniker RootMoniker RootMoniker

Sets or gets a script engine's root moniker.

RootNamespace RootNamespace RootNamespace RootNamespace

Sets or gets the root namespace used by the script engine.

Site Site Site Site

Sets or gets the host-implemented IJSVsaSite object that is used by the script engine to communicate with the host.

Version Version Version Version

Gets the current version of the language compiler supported by the script engine, in the form Major.Minor.Revision.Build.

Methods

Close() Close() Close() Close()

Closes the engine.

Compile() Compile() Compile() Compile()

Causes the engine to compile the existing source state.

GetOption(String) GetOption(String) GetOption(String) GetOption(String)

Gets implementation-specific options for the engine.

InitNew() InitNew() InitNew() InitNew()

Provides a notification that the initialization phase is complete.

IsValidIdentifier(String) IsValidIdentifier(String) IsValidIdentifier(String) IsValidIdentifier(String)

Checks whether the supplied identifier is valid for the engine.

LoadSourceState(IJSVsaPersistSite) LoadSourceState(IJSVsaPersistSite) LoadSourceState(IJSVsaPersistSite) LoadSourceState(IJSVsaPersistSite)

Directs the engine to load source items from their point of persistence, as specified by the host-provided object.

Reset() Reset() Reset() Reset()

Removes the script engine from the running state and disconnects automatically bound event handlers.

RevokeCache() RevokeCache() RevokeCache() RevokeCache()

Invalidates the cached assembly for the engine, as specified by its root moniker.

Run() Run() Run() Run()

Initiates execution of compiled code in the script engine and binds all event handlers.

SaveCompiledState(Byte[], Byte[]) SaveCompiledState(Byte[], Byte[]) SaveCompiledState(Byte[], Byte[]) SaveCompiledState(Byte[], Byte[])

Saves the compiled state of the script engine; optionally, it also saves debugging information.

SaveSourceState(IJSVsaPersistSite) SaveSourceState(IJSVsaPersistSite) SaveSourceState(IJSVsaPersistSite) SaveSourceState(IJSVsaPersistSite)

Directs the script engine to persist its source state.

SetOption(String, Object) SetOption(String, Object) SetOption(String, Object) SetOption(String, Object)

Sets implementation-specific options for a script engine.

Applies to