IVsaItem IVsaItem IVsaItem IVsaItem Interface

定义

警告

此 API 现已过时。

为所有添加到 .NET 脚本引擎的项定义一个接口,包括代码项、引用项和全局项。Defines an interface for all items added to the .NET script engine, including code items, reference items, and global items. 它定义应用于该引擎识别的所有项类型的泛型属性和方法。It defines generic properties and methods that apply to all item types recognized by the engine.

public interface class IVsaItem
[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.Guid("E0C0FFE5-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaItem
type IVsaItem = interface
Public Interface IVsaItem
派生
属性

属性

IsDirty IsDirty IsDirty IsDirty

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

ItemType ItemType ItemType ItemType

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

Name Name Name Name

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

方法

GetOption(String) GetOption(String) GetOption(String) GetOption(String)

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

SetOption(String, Object) SetOption(String, Object) SetOption(String, Object) SetOption(String, Object)

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

适用于