Share via


CommandCollection Class

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

Inheritance Hierarchy

System.Object
  Microsoft.AnalysisServices.CommandCollection

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
<GuidAttribute("96BAC2E7-D849-4146-8100-A7BF3C0A9617")> _
Public NotInheritable Class CommandCollection _
    Implements IList, ICollection, IEnumerable
'Usage
Dim instance As CommandCollection
[GuidAttribute("96BAC2E7-D849-4146-8100-A7BF3C0A9617")]
public sealed class CommandCollection : IList, 
    ICollection, IEnumerable
[GuidAttribute(L"96BAC2E7-D849-4146-8100-A7BF3C0A9617")]
public ref class CommandCollection sealed : IList, 
    ICollection, IEnumerable
[<SealedAttribute>]
[<GuidAttribute("96BAC2E7-D849-4146-8100-A7BF3C0A9617")>]
type CommandCollection =  
    class 
        interface IList 
        interface ICollection 
        interface IEnumerable 
    end
public final class CommandCollection implements IList, ICollection, IEnumerable

The CommandCollection type exposes the following members.

Constructors

  Name Description
Public method CommandCollection() Initializes a new instance of the CommandCollection class.
Public method CommandCollection(MdxScript)

Top

Properties

  Name Description
Public property Count Gets the number of Command objects contained in the collection.
Public property Item Gets the Command at the specified index from the collection.

Top

Methods

  Name Description
Public method Add Adds a Command to the end of the collection.
Public method AddRange Adds the elements of an ICollection to the end of the collection.
Public method Clear Removes all elements from the collection.
Public method Contains Indicates whether the collection contains a specified Command.
Public method CopyTo Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Gets the index of a specified Command.
Public method Insert Inserts a Command into the collection at the specified index.
Public method Remove Removes the specified Command from the collection.
Public method RemoveAt Removes the Command at the specified index from the collection.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add Adds an item to the collection.
Explicit interface implemetationPrivate method IList.Contains Indicates whether the collection contains a specific value.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate method IList.IndexOf Determines the index of a specific item in the collection.
Explicit interface implemetationPrivate method IList.Insert Inserts an item to the collection at the specified index.
Explicit interface implemetationPrivate property IList.IsFixedSize Gets a value that indicates whether the collection has a fixed size.
Explicit interface implemetationPrivate property IList.IsReadOnly Gets a value that indicates whether this CommandCollection is read-only.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a value that indicates whether access to the CommandCollection is synchronized.
Explicit interface implemetationPrivate property IList.Item Gets or sets the element at the specified index.
Explicit interface implemetationPrivate method IList.Remove Removes the first occurrence of a specified object from the collection.
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that can be used to synchronize access to the CommandCollection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AnalysisServices Namespace