VsaItems VsaItems VsaItems VsaItems Class

定义

表示可按名称或索引编址的 IJSVsaItem 对象的集合。Represents a collection of IJSVsaItem objects that can be addressed either by name or by index.

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

public ref class VsaItems sealed : Microsoft::JScript::Vsa::IJSVsaItems, System::Collections::IEnumerable
public sealed class VsaItems : Microsoft.JScript.Vsa.IJSVsaItems, System.Collections.IEnumerable
type VsaItems = class
    interface IJSVsaItems
    interface IEnumerable
Public NotInheritable Class VsaItems
Implements IEnumerable, IJSVsaItems
继承
VsaItemsVsaItemsVsaItemsVsaItems
实现

构造函数

VsaItems(VsaEngine) VsaItems(VsaEngine) VsaItems(VsaEngine) VsaItems(VsaEngine)

初始化 VsaItems 类的新实例。Initializes a new instance of the VsaItems class.

属性

Count Count Count Count

获取集合中的项数。Gets the number of items in the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

从集合中获取由指定索引值指定的项。Gets the item from the collection that is designated by the specified index value.

Item[String] Item[String] Item[String] Item[String]

从集合中获取由指定名称指定的项。Gets the item from the collection that is designated by the specified name.

方法

Close() Close() Close() Close()

断开集合中每一项与脚本引擎的连接。Disconnects each item in the collection from the scripting engine.

CreateItem(String, JSVsaItemType, JSVsaItemFlag) CreateItem(String, JSVsaItemType, JSVsaItemFlag) CreateItem(String, JSVsaItemType, JSVsaItemFlag) CreateItem(String, JSVsaItemType, JSVsaItemFlag)

创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection.

CreateItem(String, VsaItemType, VsaItemFlag) CreateItem(String, VsaItemType, VsaItemFlag) CreateItem(String, VsaItemType, VsaItemFlag) CreateItem(String, VsaItemType, VsaItemFlag)

创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

获取一个能够循环访问集合的枚举数。Gets an enumerator that iterates over the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Remove(Int32) Remove(Int32) Remove(Int32) Remove(Int32)

从集合中移除由指定索引值指定的项。Removes the item that is designated by the specified index value from the collection.

Remove(String) Remove(String) Remove(String) Remove(String)

从集合中移除由指定名称指定的项。Removes the item that is designated by the specified name from the collection.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅