Share via


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 介面的任何成員不需要任何許可權。

腳本引擎會實作這個介面,以新增程式代碼專案。

屬性

CodeDOM
已淘汰.

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

IsDirty
已淘汰.

傳回值,指出項目目前的記憶體中表示與保存的表示是否有所不同。

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

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

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

取得或設定項目的名稱。

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

取得或設定指定程式碼項目的文字,包含任何自動產生的程式碼。

方法

AddEventSource(String, String)
已淘汰.

將事件來源加入程式碼項目。 程式碼項目會使用事件來源,藉由呼叫主機實作的 IVsaSite.GetEventSourceInstance 方法將事件連結至具名事件來源。

AppendSourceText(String)
已淘汰.

將指定的文字附加至程式碼項目結尾。

GetOption(String)
已淘汰.

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

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

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

SetOption(String, Object)
已淘汰.

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

(繼承來源 IVsaItem)

適用於