CalculationPropertyCollection.Move CalculationPropertyCollection.Move CalculationPropertyCollection.Move Method

Definition

Moves a CalculationProperty to a new index in the collection.

Overloads

Move(CalculationProperty, Int32) Move(CalculationProperty, Int32) Move(CalculationProperty, Int32)

Moves a CalculationProperty to a new index in the collection.

Move(Int32, Int32) Move(Int32, Int32) Move(Int32, Int32)

Moves a CalculationProperty at the current specified index to a new specified index in the collection.

Move(String, Int32) Move(String, Int32) Move(String, Int32)

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

Move(CalculationProperty, Int32) Move(CalculationProperty, Int32) Move(CalculationProperty, Int32)

Moves a CalculationProperty to a new index in the collection.

public:
 void Move(Microsoft::AnalysisServices::CalculationProperty ^ item, int toIndex);
public void Move (Microsoft.AnalysisServices.CalculationProperty item, int toIndex);
Public Sub Move (item As CalculationProperty, toIndex As Integer)
Parameters
toIndex
Int32 Int32 Int32

The zero-based index to which to move the CalculationProperty specified by item.

Exceptions

toIndex is less than zero.

-or-

toIndex is equal to or greater than Count.

-or-

item is not contained by the collection.

Move(Int32, Int32) Move(Int32, Int32) Move(Int32, Int32)

Moves a CalculationProperty at the current specified index to a new specified index in the collection.

public:
 Microsoft::AnalysisServices::CalculationProperty ^ Move(int fromIndex, int toIndex);
public Microsoft.AnalysisServices.CalculationProperty Move (int fromIndex, int toIndex);
Public Function Move (fromIndex As Integer, toIndex As Integer) As CalculationProperty
Parameters
fromIndex
Int32 Int32 Int32

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

toIndex
Int32 Int32 Int32

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

Returns
Exceptions

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

toIndex is less than zero.

-or-

toIndex is equal to or greater than Count.

Move(String, Int32) Move(String, Int32) Move(String, Int32)

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

public:
 Microsoft::AnalysisServices::CalculationProperty ^ Move(System::String ^ calculationReference, int toIndex);
public Microsoft.AnalysisServices.CalculationProperty Move (string calculationReference, int toIndex);
Public Function Move (calculationReference As String, toIndex As Integer) As CalculationProperty
Parameters
calculationReference
String String String

The identifier of the CalculationProperty to be moved.

toIndex
Int32 Int32 Int32

The zero-based index to which to move the CalculationProperty specified by calculationReference.

Returns
Exceptions

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

calculationReference is not contained by the collection.

Applies to