BaseVsaEngine 类

定义

警告

此 API 现已过时。

实现 IJSVsaEngine 接口。Implements IJSVsaEngine interface.

public ref class BaseVsaEngine abstract : Microsoft::JScript::Vsa::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("F8932A50-9127-48B6-B115-2BFDC627CEE3")]
public abstract class BaseVsaEngine : Microsoft.JScript.Vsa.IJSVsaEngine
type BaseVsaEngine = class
    interface IJSVsaEngine
Public MustInherit Class BaseVsaEngine
Implements IJSVsaEngine
继承
BaseVsaEngine
派生
属性
实现

字段

applicationPath

获取或设置应用程序的路径。Gets or sets the application path.

assemblyVersion

获取或设置程序集版本。Gets or sets the assembly version.

compiledRootNamespace

获取或设置已编译的根命名空间。Gets or sets the compiled root namespace.

engineMoniker

获取或设置引擎名字对象。Gets or sets the engine moniker.

engineName

获取或设置引擎名称。Gets or sets the engine name.

engineSite

获取或设置引擎站点。Gets or sets the engine site.

errorLocale

获取或设置错误号。Gets or sets the error locale.

executionEvidence

获取或设置执行 ID。Gets or sets the execution evidence.

failedCompilation

获取或设置一个值,该值指示编译是否失败。Gets or sets a value that indicates whether the compilation failed.

genDebugInfo

获取或设置一个值,该值指示是否生成调试信息。Gets or sets a value that indicates whether debug information is generated.

haveCompiledState

获取或设置一个值,该值指示是否具有已编译的状态。Gets or sets a value that indicates whether there is a compiled state.

isClosed

获取或设置一个值,该值指示引擎是否关闭。Gets or sets a value that indicates whether the engine is closed.

isDebugInfoSupported

获取或设置一个值,该值指示是否支持调试信息。Gets or sets a value that indicates whether debug information is supported.

isEngineCompiled

获取或设置一个值,该值指示引擎是否编译。Gets or sets a value that indicates whether the engine is compiled.

isEngineDirty

获取或设置一个值,该值指示该项的当前内存中表示形式是否与保留的表示形式不同。Gets or sets a value that indicates whether the current in-memory representation of the item differs from the persisted representation.

isEngineInitialized

获取或设置一个值,该值指示引擎是否初始化。Gets or sets a value that indicates whether the engine is initialized.

isEngineRunning

获取或设置一个指示引擎是否正在运行的值。Gets or sets a value that indicates whether the engine is running.

loadedAssembly

获取或设置已加载程序集。Gets or sets the loaded assembly.

nameTable

获取或设置名称表。Gets or sets the name table.

rootNamespace

获取或设置根命名空间。Gets or sets the root namespace.

scriptLanguage

获取或设置脚本语言。Gets or sets the script language.

startupClass

获取或设置启动类。Gets or sets the startup class.

startupInstance

获取或设置启动实例。Gets or sets the startup instance.

vsaItems

获取或设置子对象的集合。Gets or sets the collection of IVsaItem objects.

属性

AppDomain

获取或设置要应用程序域。Gets or sets the application domain.

ApplicationBase

获取或设置应用程基。Gets or sets the application base.

Assembly

获取由 Run 方法生成的运行程序集的引用。Gets a reference to the running assembly generated by Run method.

Evidence

提供用于验证当前对象的标识的证据。Provides evidence for the purpose of validating the current object's identity.

GenerateDebugInfo

获取或设置指示脚本引擎会不会在调用 Compile 方法时产生调试信息的布尔值。Gets or sets a Boolean value that signifies whether the script engine produces debug information when the Compile method is called.

IsCompiled

获取一个值,该值指示源是否已编译。Gets a value that indicates whether the source is compiled.

IsDirty

获取或设置一个值,该值指示该项的当前内存中表示形式是否与保留的表示形式不同。Gets or sets a value that indicates whether the current in-memory representation of the item differs from the persisted representation.

IsRunning

获取报告引擎当前是否处于运行模式的布尔值。Gets a Boolean value that reports whether the engine is currently in run mode.

Items

获取 IJSVsaItem 对象的集合,该集合表示添加到引擎的所有项。Gets the collection of IJSVsaItem objects, which represent all items added to the engine.

Language

获取由该引擎支持的编程语言名称。Gets the name of the programming language supported by the engine.

LCID

获取或设置在报告异常消息时所使用的地理区域设置和语言。Gets or sets the geographical locale and language in which to report exception messages.

Name

获取或设置引擎的显示名称。Gets or sets the display name of the engine.

RootMoniker

获取或设置脚本引擎的根名字对象。Gets or sets a script engine's root moniker.

RootNamespace

获取或设置该引擎使用的根命名空间。Gets or sets the root namespace used by the engine.

Site

获取或设置由宿主实现的 IJSVsaSite 对象,该引擎使用此对象与宿主通信。Gets or sets the host-implemented IJSVsaSite object that is used by the engine to communicate with the host.

Version

获取由该引擎支持的语言编译器的当前版本,格式为 Major.Minor.Revision.BuildGets the current version of the language compiler supported by the engine, in the form Major.Minor.Revision.Build.

方法

Close()

关闭该引擎。Closes the engine.

Compile()

使引擎编译现有的源状态。Causes the engine to compile the existing source state.

DoClose()

关闭该引擎。Closes the engine.

DoCompile()

使脚本引擎编译现有的源状态。Causes the script engine to compile the existing source state.

DoLoadSourceState(IJSVsaPersistSite)

指示引擎加载源项。Directs the engine to load source items.

DoSaveCompiledState(Byte[], Byte[])

保存脚本引擎的编译状态;它还可选择保存调试信息。Saves the compiled state of the script engine; optionally, it also saves debugging information.

DoSaveSourceState(IJSVsaPersistSite)

指示脚本引擎将其源状态保存到指定的对象。Directs the script engine to persist its source state to the specified object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Error(JSVsaError)

返回错误。Returns an error.

GetCustomOption(String)

获取引擎实现特定的选项。Gets implementation-specific options for the engine.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetOption(String)

获取引擎实现特定的选项。Gets implementation-specific options for the engine.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitNew()

提供初始化阶段已完成的通知。Provides a notification that the initialization phase is complete.

IsValidIdentifier(String)

检查提供的标识符是否对引擎有效。Checks whether the supplied identifier is valid for the engine.

IsValidNamespaceName(String)

检查提供的命名空间是否对引擎有效。Checks whether the supplied namespace is valid for the engine.

LoadCompiledState()

加载编译状态。Loads the compiled state.

LoadSourceState(IJSVsaPersistSite)

如宿主提供的对象所指定的那样,指示引擎从持久性点加载源项。Directs the engine to load source items from their point of persistence, as specified by the host-provided object.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Preconditions(BaseVsaEngine+Pre)

设置前置条件标志。Sets the precondition flags.

Reset()

从运行状态中移除引擎,并自动断开与绑定事件处理程序的连接。Removes the engine from the running state and disconnects automatically bound event handlers.

ResetCompiledState()

重置编译状态。Resets the compiled state.

RevokeCache()

为引擎将缓存程序集无效化,由其根名字对象指定。Invalidates the cached assembly for the engine, as specified by its root moniker.

Run()

启动引擎中已编译代码的执行,并绑定所有事件处理程序。Initiates execution of compiled code in the engine and binds all event handlers.

SaveCompiledState(Byte[], Byte[])

保存引擎的编译状态;它还可选择保存调试信息。Saves the compiled state of the engine; optionally, it also saves debugging information.

SaveSourceState(IJSVsaPersistSite)

指示引擎坚持其源状态。Directs the engine to persist its source state.

SetCustomOption(String, Object)

为该引擎设置特定于实现的选项。Sets implementation-specific options for the engine.

SetOption(String, Object)

为该引擎设置特定于实现的选项。Sets implementation-specific options for the engine.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
ValidateRootMoniker(String)

验证根名字对象。Validates the root moniker.

适用于