MeasureGroupCollection.Move MeasureGroupCollection.Move MeasureGroupCollection.Move Method

Definition

Moves a MeasureGroup to a new index in the collection.

Overloads

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

Moves a MeasureGroup to a new index in the collection.

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

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

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

Moves the MeasureGroup that has the specified identifier to the specified index in the collection.

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

Moves a MeasureGroup to a new index in the collection.

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

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

Exceptions

toIndex is less than zero.

-or-

toIndex is equal to or greater than Count.

-or-

item does not exist in the collection.

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

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

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

The zero-based index of the MeasureGroup to move.

toIndex
Int32 Int32 Int32

The zero-based index to which to move the MeasureGroup 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 the MeasureGroup that has the specified identifier to the specified index in the collection.

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

The identifier of the MeasureGroup to move.

toIndex
Int32 Int32 Int32

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

Returns
Exceptions

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

id does not exist in the collection.

Applies to