Share via


IVsaEngine 介面

定義

警告

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.

定義指令碼引擎必須支援的方法和屬性,並對指令碼引擎提供程式設計方式的存取。

public interface class IVsaEngine
[System.Runtime.InteropServices.Guid("E0C0FFE1-7eea-4ee2-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaEngine
[System.Runtime.InteropServices.Guid("E0C0FFE1-7eea-4ee2-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[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.")]
public interface IVsaEngine
[<System.Runtime.InteropServices.Guid("E0C0FFE1-7eea-4ee2-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaEngine = interface
[<System.Runtime.InteropServices.Guid("E0C0FFE1-7eea-4ee2-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<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.")>]
type IVsaEngine = interface
Public Interface IVsaEngine
衍生
屬性

屬性

Assembly
已淘汰.

取得 Run() 方法產生之執行中組件的參考。

Evidence
已淘汰.

提供辨識項,目的為驗證目前物件的識別。

GenerateDebugInfo
已淘汰.

設定或取得布林值,這個值表示呼叫 Compile() 方法時,指令碼引擎是否產生偵錯資訊。

IsCompiled
已淘汰.

取得值,這個值表示呼叫 Compile() 方法時,指令碼引擎是否設定為產生偵錯資訊。

IsDirty
已淘汰.

取得值,這個值表示自上次儲存作業後,或自原本載入指令碼引擎後,指令碼引擎的來源狀態是否已變更。

IsRunning
已淘汰.

取得值,這個值表示指令碼引擎目前是否處於執行模式。

Items
已淘汰.

取得 IVsaItem 物件的 IVsaItems 集合,代表使用 CreateItem 方法新增至指令碼引擎的所有項目,包括程式碼項目、參考項目和全域項目。

Language
已淘汰.

取得指令碼引擎所支援程式語言的未當地語系化名稱。

LCID
已淘汰.

取得或設定用來報告例外狀況訊息的地區設定和語言。

Name
已淘汰.

取得或設定指令碼引擎的顯示名稱,這個名稱主要是用來向裝載環境中的使用者識別個別指令碼引擎。

RootMoniker
已淘汰.

設定或取得指令碼引擎的根 Moniker。

RootNamespace
已淘汰.

設定或取得指令碼引擎所使用的根命名空間。

Site
已淘汰.

設定或取得主機實作的 IVsaSite 物件,指令碼引擎使用它來與主機通訊。

Version
已淘汰.

取得指令碼引擎所支援語言編譯器的目前版本,以 Major.Minor.Revision.Build 格式表示。

方法

Close()
已淘汰.

關閉指令碼引擎並釋放所有資源。 如果指令碼引擎目前正在執行,則會先呼叫 Reset() 方法。

Compile()
已淘汰.

使指令碼引擎編譯現有來源狀態。

GetOption(String)
已淘汰.

取得指令碼引擎的實作特定選項。

InitNew()
已淘汰.

提供初始化階段完成,且指令碼引擎已準備好加入 IVsaItem 物件的通知。

IsValidIdentifier(String)
已淘汰.

檢查提供的識別項對指令碼引擎是否有效。

LoadSourceState(IVsaPersistSite)
已淘汰.

依照實作 IVsaPersistSite 介面之主機提供的物件所指定,指示指令碼引擎從保存點載入來源項目。

Reset()
已淘汰.

將指令碼引擎從執行狀態移除,並中斷自動繫結之事件處理常式的連接。

RevokeCache()
已淘汰.

依照根 Moniker 所指定,使指令碼引擎的快取組件失效。

Run()
已淘汰.

啟始指令碼引擎中已編譯程式碼的執行,並繫結所有事件處理常式。

SaveCompiledState(Byte[], Byte[])
已淘汰.

儲存指令碼引擎的編譯狀態,也可選擇性地儲存偵錯資訊。

SaveSourceState(IVsaPersistSite)
已淘汰.

指示指令碼引擎將來源狀態保存至指定的 IVsaPersistSite 物件。

SetOption(String, Object)
已淘汰.

設定指令碼引擎的實作特定選項。

適用於