Share via


PerspectiveHierarchyCollection.Move Method

Definition

Overloads

Move(PerspectiveHierarchy, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

Moves a PerspectiveHierarchy, with the specified HierarchyID, to a new position in the collection.

Move(PerspectiveHierarchy, Int32)

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

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

Parameters

toIndex
Int32

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

Exceptions

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

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

Parameters

fromIndex
Int32

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

toIndex
Int32

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

Returns

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

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

Parameters

hierarchyId
String

The HierarchyID of the PerspectiveHierarchy to be moved.

toIndex
Int32

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

Returns

The PerspectiveHierarchy that was moved.

Exceptions

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

Applies to