Share via


PerspectiveActionCollection.Insert Method

Definition

Overloads

Insert(Int32, PerspectiveAction)

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

Insert(Int32, String)

Creates a new PerspectiveAction object using the specified ActionID, inserts it to the collection at the specified index and returns the new PerspectiveAction created.

Insert(Int32, PerspectiveAction)

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

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

Parameters

index
Int32

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

item
PerspectiveAction

The PerspectiveAction 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 ActionID of the specified PerspectiveAction is not valid in the collection.
  • The compatibility-level of the specified PerspectiveAction is not valid in the collection.

Applies to

Insert(Int32, String)

Creates a new PerspectiveAction object using the specified ActionID, inserts it to the collection at the specified index and returns the new PerspectiveAction created.

public Microsoft.AnalysisServices.PerspectiveAction Insert (int index, string actionId);
override this.Insert : int * string -> Microsoft.AnalysisServices.PerspectiveAction
Public Function Insert (index As Integer, actionId As String) As PerspectiveAction

Parameters

index
Int32

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

actionId
String

The ActionID for the new PerspectiveAction object.

Returns

The newly created PerspectiveAction object.

Exceptions

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

The specified ActionID is not valid in the collection.

Applies to