IJSVsaCodeItem 接口

定义

警告

此 API 现已过时。

表示要通过脚本引擎编译的代码项。Represents a code item to be compiled by the script engine.

public interface class IJSVsaCodeItem : Microsoft::JScript::Vsa::IJSVsaItem
[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("528BBC87-CCDC-4F07-B29C-9B10575DEB2F")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSVsaCodeItem : Microsoft.JScript.Vsa.IJSVsaItem
type IJSVsaCodeItem = interface
    interface IJSVsaItem
Public Interface IJSVsaCodeItem
Implements IJSVsaItem
派生
属性
实现

属性

CodeDOM

获取在代码项中表示的代码文档对象模型 (CodeDOM)。Gets the code document object model (CodeDOM) represented in the code item.

IsDirty

返回一个值,它指示该项的当前内存中表示形式是否与保留的表示形式不同。Returns a value indicating whether the current in-memory representation of the item differs from the persisted representation.

(继承自 IJSVsaItem)
ItemType

获取指定对象的类型(如 CreateItem(String, JSVsaItemType, JSVsaItemFlag) 方法所确定的那样)。Gets the specified object's type, as determined by the CreateItem(String, JSVsaItemType, JSVsaItemFlag) method.

(继承自 IJSVsaItem)
Name

获取或设置项的名称。Gets or sets the name of the item.

(继承自 IJSVsaItem)
SourceText

获取或设置指定的代码项的文本,包括自动生成的代码(如果有)。Gets or sets the text of a specified code item, including auto-generated code, if any.

方法

AddEventSource(String, String)

将事件源添加到代码项中。Adds an event source to the code item. 代码项通过调用 IVsaSite.GetEventSourceInstance 方法(由宿主实现),使用事件源将事件挂钩到命名事件源。The code item uses the event source to hook up an event to the named event source by calling the IVsaSite.GetEventSourceInstance method, which is implemented by the host.

AppendSourceText(String)

将指定的文本追加到代码项尾部。Appends specified text to the end of the code item.

GetOption(String)

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

(继承自 IJSVsaItem)
RemoveEventSource(String)

从代码项中移除指定的事件源。Removes the specified event source from the code item.

SetOption(String, Object)

设置脚本引擎特定于实现的选项。Sets implementation-specific options for a script engine.

(继承自 IJSVsaItem)

适用于