CubeHierarchyCollection.Move Method (String, Int32)

 

Updated: May 16, 2016

Moves a CubeHierarchy, with the specified identifier, to the specified index in the collection.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public CubeHierarchy Move(
	string hierarchyId,
	int toIndex
)

Parameters

hierarchyId
Type: System.String

The identifier of the CubeHierarchy to be moved.

toIndex
Type: System.Int32

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

Return Value

Type: Microsoft.AnalysisServices.CubeHierarchy

The CubeHierarchy to be moved.

Exception Condition
ArgumentOutOfRangeException

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

hierarchyID is not contained by the collection.

Return to top
Show: