CommandCollection 类

定义

表示 Command 对象集合。 此类不能被继承。

[System.Runtime.InteropServices.Guid("96BAC2E7-D849-4146-8100-A7BF3C0A9617")]
public sealed class CommandCollection : System.Collections.IList
[<System.Runtime.InteropServices.Guid("96BAC2E7-D849-4146-8100-A7BF3C0A9617")>]
type CommandCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class CommandCollection
Implements IList
继承
CommandCollection
属性
实现

构造函数

CommandCollection()

使用默认值初始化 CommandCollection 的新实例。

CommandCollection(MdxScript)

使用指定父级初始化 CommandCollection 的新实例。

属性

Count

获取集合中包含的元素数。

Item[Int32]

获取或设置指定索引处的 Command 元素。

方法

Add(Command)

将指定的 Command 添加到集合末尾。

AddRange(ICollection)

将指定的元素集添加到集合末尾。

Clear()

从集合中移除所有项。

Contains(Command)

确定集合中是否存在指定的 Command

CopyTo(Array, Int32)

将集合的元素复制到数组,从特定数组索引处开始复制。

IndexOf(Command)

搜索指定 Command 并返回集合中其从零开始的索引。

Insert(Int32, Command)

将指定的 Command 插入到集合中的指定索引处。

Remove(Command)

从此集合中删除指定的 Command

RemoveAt(Int32)

删除指定索引处的 Command

显式接口实现

ICollection.IsSynchronized

表示 Command 对象集合。 此类不能被继承。

ICollection.SyncRoot

表示 Command 对象集合。 此类不能被继承。

IEnumerable.GetEnumerator()

表示 Command 对象集合。 此类不能被继承。

IList.Add(Object)

表示 Command 对象集合。 此类不能被继承。

IList.Contains(Object)

表示 Command 对象集合。 此类不能被继承。

IList.IndexOf(Object)

表示 Command 对象集合。 此类不能被继承。

IList.Insert(Int32, Object)

表示 Command 对象集合。 此类不能被继承。

IList.IsFixedSize

表示 Command 对象集合。 此类不能被继承。

IList.IsReadOnly

表示 Command 对象集合。 此类不能被继承。

IList.Item[Int32]

表示 Command 对象集合。 此类不能被继承。

IList.Remove(Object)

表示 Command 对象集合。 此类不能被继承。

适用于