Freigeben über


CalculationPropertyCollection.Move Method

Definition

Overloads

Move(CalculationProperty, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

Moves a CalculationProperty, with the specified Calculation-Reference, to a new position in the collection.

Move(CalculationProperty, Int32)

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

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

Parameters

toIndex
Int32

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

Exceptions

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

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

Parameters

fromIndex
Int32

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

toIndex
Int32

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

Returns

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

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

Parameters

calculationReference
String

The Calculation-Reference of the CalculationProperty to be moved.

toIndex
Int32

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

Returns

The CalculationProperty that was moved.

Exceptions

  • calculationReference is not a valid Calculation-Reference to a CalculationProperty in the collection.
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to