VsaItem 类

定义

表示添加到 .NET 脚本引擎的项。Represents items added to the .NET script engine. 其中包括代码项、引用项和全局项。This includes code items, reference items, and global items.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class VsaItem abstract : Microsoft::JScript::Vsa::IJSVsaItem
public abstract class VsaItem : Microsoft.JScript.Vsa.IJSVsaItem
type VsaItem = class
    interface IJSVsaItem
Public MustInherit Class VsaItem
Implements IJSVsaItem
继承
VsaItem
实现

字段

flag

将项的类型指定为 ClassModuleNoneSpecifies the type of the item as Class, Module, or None.

isDirty

指定该项的当前内存中表示形式是否与保留的表示形式不同。Specifies whether the current in-memory representation of the item differs from the persisted representation.

name

指定项的名称。Specifies the name of the item.

type

将项的类型指定为 CodeReferenceAppGlobalSpecifies the type of the item as Code, Reference, or AppGlobal.

属性

IsDirty

获取或设置一个值,该值指示该项的当前内存中表示形式是否与保留的表示形式不同。Gets or sets a value that indicates whether the current in-memory representation of the item differs from the persisted representation.

ItemType

获取项的类型。Gets the type of the item.

Name

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

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetOption(String)

获取基本代码选项。Gets the codebase option.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetOption(String, Object)

设置基本代码选项。Sets the codebase option.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅