VsaItems 类
定义
表示可按名称或索引编址的 IJSVsaItem 对象的集合。Represents a collection of IJSVsaItem objects that can be addressed either by name or by index.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class VsaItems sealed : Microsoft::Vsa::IVsaItems, System::Collections::IEnumerable
public ref class VsaItems sealed : Microsoft::JScript::Vsa::IJSVsaItems, System::Collections::IEnumerable
public sealed class VsaItems : Microsoft.Vsa.IVsaItems, System.Collections.IEnumerable
public sealed class VsaItems : Microsoft.JScript.Vsa.IJSVsaItems, System.Collections.IEnumerable
type VsaItems = class
interface IVsaItems
interface IEnumerable
type VsaItems = class
interface IJSVsaItems
interface IEnumerable
Public NotInheritable Class VsaItems
Implements IEnumerable, IVsaItems
Public NotInheritable Class VsaItems
Implements IEnumerable, IJSVsaItems
- 继承
-
VsaItems
- 实现
构造函数
| VsaItems(VsaEngine) |
此 API 支持产品基础结构,不能在代码中直接使用。 初始化 VsaItems 类的新实例。Initializes a new instance of the VsaItems class. |
属性
| Count |
此 API 支持产品基础结构,不能在代码中直接使用。 获取集合中的项数。Gets the number of items in the collection. |
| Item[Int32] |
此 API 支持产品基础结构,不能在代码中直接使用。 从集合中获取由指定索引值指定的项。Gets the item from the collection that is designated by the specified index value. |
| Item[String] |
此 API 支持产品基础结构,不能在代码中直接使用。 从集合中获取由指定名称指定的项。Gets the item from the collection that is designated by the specified name. |
方法
| Close() |
此 API 支持产品基础结构,不能在代码中直接使用。 断开集合中每一项与脚本引擎的连接。Disconnects each item in the collection from the scripting engine. |
| CreateItem(String, JSVsaItemType, JSVsaItemFlag) |
此 API 支持产品基础结构,不能在代码中直接使用。 创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection. |
| CreateItem(String, VsaItemType, VsaItemFlag) |
此 API 支持产品基础结构,不能在代码中直接使用。 创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetEnumerator() |
此 API 支持产品基础结构,不能在代码中直接使用。 获取一个能够循环访问集合的枚举数。Gets an enumerator that iterates over the collection. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Remove(Int32) |
此 API 支持产品基础结构,不能在代码中直接使用。 从集合中移除由指定索引值指定的项。Removes the item that is designated by the specified index value from the collection. |
| Remove(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 从集合中移除由指定名称指定的项。Removes the item that is designated by the specified name from the collection. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |