VsaEngine 類別

定義

警告

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 ref class VsaEngine : Microsoft::Vsa::IVsaEngine
public class VsaEngine : Microsoft.Vsa.IVsaEngine
[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 class VsaEngine : Microsoft.Vsa.IVsaEngine
type VsaEngine = class
    interface IVsaEngine
[<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 VsaEngine = class
    interface IVsaEngine
Public Class VsaEngine
Implements IVsaEngine
繼承
VsaEngine
屬性
實作

建構函式

名稱 Description
VsaEngine()
已淘汰.

初始化 VsaEngine 類別的新執行個體。

欄位

名稱 Description
_baseEngine
_engineClosed
m_Items

屬性

名稱 Description
Assembly
已淘汰.

會取得由該方法產生 Run() 的執行組裝的參考。

Evidence
已淘汰.

取得或設定證據以驗證當前物件的身份。

GenerateDebugInfo
已淘汰.

取得或設定一個值,指示當呼叫編譯方法時,腳本引擎是否產生除錯資訊。

IsCompiled
已淘汰.

會獲得一個值,表示腳本引擎是否設定在呼叫該方法時 Compile() 產生除錯資訊。

IsDirty
已淘汰.

會取得一個值,表示腳本引擎的來源狀態自上次存檔操作以來是否改變,或自從腳本引擎最初載入以來有所改變。

IsRunning
已淘汰.

會得到一個值,表示腳本引擎目前是否處於執行模式。

Items
已淘汰.

取得 IVsaItems 物件集合 IVsaItem ,代表使用 CreateItem 方法加入腳本引擎的所有項目,包括程式碼項目、參考項目及全域項目。

Language
已淘汰.

取得腳本引擎支援的程式語言非本地化名稱。

LCID
已淘汰.

取得或設定報告異常訊息的地理地點及語言。

Name
已淘汰.

取得或設定腳本引擎的顯示名稱,主要用於在託管環境中識別個別腳本引擎給使用者。

RootMoniker
已淘汰.

取得或設定腳本引擎的根名稱。

RootNamespace
已淘汰.

取得或設定腳本引擎使用的根命名空間。

Site
已淘汰.

取得或設定由腳本引擎用來與主機通訊的主機實作 IVsaSite 物件。

Version
已淘汰.

取得腳本引擎支援的當前語言編譯器版本,格式為 Major.Minor.Revision.Build。

方法

名稱 Description
CheckEngine()
Close()
已淘汰.

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

Compile()
已淘汰.

它會讓腳本引擎編譯現有的原始碼狀態。

CreateEngine()
Dispose(Boolean)
已淘汰.

釋放目前 VsaEngine所有已使用的資源。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()
已淘汰.

允許對象嘗試釋放資源,並在垃圾收集回收之前執行其他清除作業。

GetExceptionToThrow(Exception)
GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetOption(String)
已淘汰.

獲得針對引擎實作的專屬選項。

GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
InitNew()
已淘汰.

提供初始化階段完成的通知。

IsValidIdentifier(String)
已淘汰.

檢查所提供的識別碼是否適用於腳本引擎。

LoadSourceState(IVsaPersistSite)
已淘汰.

指令腳本引擎從執行介面的主機物件 IVsaPersistSite 指定的持久性點載入原始碼項目。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
Reset()
已淘汰.

移除腳本引擎,並斷開自動綁定的事件處理程序。

RevokeCache()
已淘汰.

依據引擎根名稱所指定的快取組合語言失效。

Run()
已淘汰.

在腳本引擎中啟動編譯程式碼的執行,並綁定所有事件處理器。

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

儲存已編譯的腳本引擎狀態;可選擇性地,它也會儲存除錯資訊。

SaveSourceState(IVsaPersistSite)
已淘汰.

指示腳本引擎將其原始狀態持久化至指定 IVsaPersistSite 物件。

SetOption(String, Object)
已淘汰.

為腳本引擎設定實作專屬選項。

ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於