This documentation is archived and is not being maintained.

IJSVsaEngine Interface

Note: This API is now obsolete.

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

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

[ObsoleteAttribute(L"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.")]
[GuidAttribute(L"8FA2C97B-47E4-4A31-A7F5-FF39D1195CD9")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
public interface class IJSVsaEngine

The IJSVsaEngine type exposes the following members.

  NameDescription
Public propertyAssemblyGets a reference to the running assembly generated by Run method.
Public propertyEvidenceProvides evidence for the purpose of validating the current object's identity.
Public propertyGenerateDebugInfoSets or gets a Boolean value that signifies whether the script engine produces debug information when the Compile method is called.
Public propertyIsCompiledGets or sets a value that indicates whether the source is compiled.
Public propertyIsDirtyGets or sets a value that indicates whether the current in-memory representation of the item differs from the persisted representation.
Public propertyIsRunningGets a Boolean value that reports whether the script engine is currently in run mode.
Public propertyItemsGets the collection of IJSVsaItem objects, which represent all items added to the script engine.
Public propertyLanguageGets the name of the programming language supported by the script engine.
Public propertyLCIDGets or sets the geographical locale and language in which to report exception messages.
Public propertyNameSets or gets the display name of the script engine.
Public propertyRootMonikerSets or gets a script engine's root moniker.
Public propertyRootNamespaceSets or gets the root namespace used by the script engine.
Public propertySiteSets or gets the host-implemented IJSVsaSite object that is used by the script engine to communicate with the host.
Public propertyVersionGets the current version of the language compiler supported by the script engine, in the form Major.Minor.Revision.Build.
Top

  NameDescription
Public methodCloseCloses the engine.
Public methodCompileCauses the engine to compile the existing source state.
Public methodGetOptionGets implementation-specific options for the engine.
Public methodInitNewProvides a notification that the initialization phase is complete.
Public methodIsValidIdentifierChecks whether the supplied identifier is valid for the engine.
Public methodLoadSourceStateDirects the engine to load source items from their point of persistence, as specified by the host-provided object.
Public methodResetRemoves the script engine from the running state and disconnects automatically bound event handlers.
Public methodRevokeCacheInvalidates the cached assembly for the engine, as specified by its root moniker.
Public methodRunInitiates execution of compiled code in the script engine and binds all event handlers.
Public methodSaveCompiledStateSaves the compiled state of the script engine; optionally, it also saves debugging information.
Public methodSaveSourceStateDirects the script engine to persist its source state.
Public methodSetOptionSets implementation-specific options for a script engine.
Top

.NET Framework

Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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: