Share via


PerspectiveCalculationCollection.Move Method

Definition

Overloads

Move(PerspectiveCalculation, Int32)

Moves the specified PerspectiveCalculation to a new position in the collection.

Move(Int32, Int32)

Moves a PerspectiveCalculation in the collection from the current position to a new one.

Move(String, Int32)

Moves a PerspectiveCalculation, with the specified name, to a new position in the collection.

Move(PerspectiveCalculation, Int32)

Moves the specified PerspectiveCalculation to a new position in the collection.

public void Move (Microsoft.AnalysisServices.PerspectiveCalculation item, int toIndex);
override this.Move : Microsoft.AnalysisServices.PerspectiveCalculation * int -> unit
Public Sub Move (item As PerspectiveCalculation, toIndex As Integer)

Parameters

toIndex
Int32

The zero-based index to which to move the specified PerspectiveCalculation.

Exceptions

  • The specified PerspectiveCalculation does not exist the collection.
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to

Move(Int32, Int32)

Moves a PerspectiveCalculation in the collection from the current position to a new one.

public Microsoft.AnalysisServices.PerspectiveCalculation Move (int fromIndex, int toIndex);
override this.Move : int * int -> Microsoft.AnalysisServices.PerspectiveCalculation
Public Function Move (fromIndex As Integer, toIndex As Integer) As PerspectiveCalculation

Parameters

fromIndex
Int32

The zero-based index of the PerspectiveCalculation to be moved.

toIndex
Int32

The zero-based index to which to move the PerspectiveCalculation specified by fromIndex.

Returns

The PerspectiveCalculation that was moved.

Exceptions

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

Applies to

Move(String, Int32)

Moves a PerspectiveCalculation, with the specified name, to a new position in the collection.

public Microsoft.AnalysisServices.PerspectiveCalculation Move (string name, int toIndex);
override this.Move : string * int -> Microsoft.AnalysisServices.PerspectiveCalculation
Public Function Move (name As String, toIndex As Integer) As PerspectiveCalculation

Parameters

name
String

The name of the PerspectiveCalculation to be moved.

toIndex
Int32

The zero-based index to which to move the PerspectiveCalculation specified by fromIndex.

Returns

The PerspectiveCalculation that was moved.

Exceptions

  • name is not a valid name to a PerspectiveCalculation in the collection.
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to