Freigeben über


CommandCollection Class

Definition

Represents a collection of Command objects. This class cannot be inherited.

[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
Inheritance
CommandCollection
Attributes
Implements

Constructors

CommandCollection()

Initializes a new instance of CommandCollection using the default values.

CommandCollection(MdxScript)

Initializes a new instance of CommandCollection using the specified parent.

Properties

Count

Gets the number of elements contained in the collection.

Item[Int32]

Gets or sets the Command element at the specified index.

Methods

Add(Command)

Adds the specified Command to the end of the collection.

AddRange(ICollection)

Adds the set of specified elements to the end of the collection.

Clear()

Removes all items from the collection.

Contains(Command)

Determines whether the specified Command exists in the collection.

CopyTo(Array, Int32)

Copies the elements of the collection to an Array, starting at a particular Array index.

IndexOf(Command)

Searches for the specified Command and returns its zero-based index within the collection.

Insert(Int32, Command)

Inserts the specified Command to the collection at the specified index.

Remove(Command)

Removes the specified Command from this collection.

RemoveAt(Int32)

Removes the Command at the specified index.

Explicit Interface Implementations

ICollection.IsSynchronized
ICollection.SyncRoot
IEnumerable.GetEnumerator()
IList.Add(Object)
IList.Contains(Object)
IList.IndexOf(Object)
IList.Insert(Int32, Object)
IList.IsFixedSize
IList.IsReadOnly
IList.Item[Int32]
IList.Remove(Object)

Applies to