Sdílet prostřednictvím


CubeHierarchyCollection.Move Method

Definition

Overloads

Move(CubeHierarchy, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

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

Move(CubeHierarchy, Int32)

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

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

Parameters

item
CubeHierarchy

The CubeHierarchy to be moved.

toIndex
Int32

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

Exceptions

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

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

Parameters

fromIndex
Int32

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

toIndex
Int32

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

Returns

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

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

Parameters

hierarchyId
String

The HierarchyID of the CubeHierarchy to be moved.

toIndex
Int32

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

Returns

The CubeHierarchy that was moved.

Exceptions

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

Applies to