Share via


CommandCollection.Insert(Int32, Command) Method

Definition

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

public void Insert (int index, Microsoft.AnalysisServices.Command item);
member this.Insert : int * Microsoft.AnalysisServices.Command -> unit
Public Sub Insert (index As Integer, item As Command)

Parameters

index
Int32

The zero-based index at which the Command is inserted.

item
Command

The Command to be inserted.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

The specified item is a null reference (Nothing in Visual Basic).

  • The specified item already esists in the collection.
  • The specified item represents an incompatible command.

Applies to