共用方式為


PerspectiveActionCollection.Move Method

Definition

Overloads

Move(PerspectiveAction, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

Moves a PerspectiveAction, with the specified ActionID, to a new position in the collection.

Move(PerspectiveAction, Int32)

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

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

Parameters

item
PerspectiveAction

The PerspectiveAction to be moved.

toIndex
Int32

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

Exceptions

  • The specified PerspectiveAction 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 PerspectiveAction in the collection from the current position to a new one.

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

Parameters

fromIndex
Int32

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

toIndex
Int32

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

Returns

The PerspectiveAction 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 PerspectiveAction, with the specified ActionID, to a new position in the collection.

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

Parameters

actionId
String

The ActionID of the PerspectiveAction to be moved.

toIndex
Int32

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

Returns

The PerspectiveAction that was moved.

Exceptions

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

Applies to