語言

IVsaCodeItem 介面

定義

警告

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 IVsaCodeItem : Microsoft::Vsa::IVsaItem
[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaCodeItem : Microsoft.Vsa.IVsaItem
[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-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 IVsaCodeItem : Microsoft.Vsa.IVsaItem
[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaCodeItem = interface
    interface IVsaItem
[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-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 IVsaCodeItem = interface
    interface IVsaItem
Public Interface IVsaCodeItem
Implements IVsaItem
衍生
屬性
實作

備註

指定的程式碼項目可以包含類別、模組或其他原始碼文字。

呼叫 IVsaCodeItem 介面的任何成員不需要任何權限。

腳本引擎實作此介面以新增程式碼項目。

屬性

名稱 Description
CodeDOM
已淘汰.

取得程式碼項目中所代表的程式碼文件物件模型(CodeDOM)。

IsDirty
已淘汰.

回傳一個值,表示目前記憶體中的項目表示是否與持久表示不同。

(繼承來源 IVsaItem)
ItemType
已淘汰.

取得指定物件的型別,依據方法 CreateItem(String, VsaItemType, VsaItemFlag) 所決定。

(繼承來源 IVsaItem)
Name
已淘汰.

取得或設定物品名稱。

(繼承來源 IVsaItem)
SourceText
已淘汰.

取得或設定指定程式碼項目的文字,包括自動產生的程式碼(如有)。

方法

名稱 Description
AddEventSource(String, String)
已淘汰.

為程式碼項目新增事件來源。 程式碼項目利用事件來源,透過呼叫由主機實作的 IVsaSite.GetEventSourceInstance 方法,將事件連接到指定的事件來源。

AppendSourceText(String)
已淘汰.

將指定的文字附加在程式碼項目的末尾。

GetOption(String)
已淘汰.

提供針對腳本引擎的實作專屬選項。

(繼承來源 IVsaItem)
RemoveEventSource(String)
已淘汰.

從程式碼項目中移除指定的事件來源。

SetOption(String, Object)
已淘汰.

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

(繼承來源 IVsaItem)

適用於