HierarchyCollection.Move Method (String, Int32)

 

Updated: May 24, 2016

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

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

public Hierarchy Move(
	string id,
	int toIndex
)

Parameters

id
Type: System.String

The identifier of the Hierarchy to be moved.

toIndex
Type: System.Int32

The zero-based index to which to move the Hierarchy specified by id.

Return Value

Type: Microsoft.AnalysisServices.Hierarchy

The Hierarchy to be moved.

Exception Condition
ArgumentOutOfRangeException

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

id is not contained by the collection.

Return to top
Show: