AggregationCollection.Move 方法

定义

重载

Move(Aggregation, Int32)

将指定的 Aggregation 移动到集合中的新位置。

Move(Int32, Int32)

将集合中的 Aggregation 从当前位置移动到新位置。

Move(String, Int32)

将具有指定标识符的 Aggregation 移动到集合中的新位置。

Move(Aggregation, Int32)

将指定的 Aggregation 移动到集合中的新位置。

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

参数

item
Aggregation

要移动的 Aggregation

toIndex
Int32

要将指定的 Aggregation 移动到的从零开始的索引。

例外

  • 指定的 Aggregation 集合不存在。
  • 指定的 toIndex 不是有效值, (小于零或大于,则) 元素总数。

适用于

Move(Int32, Int32)

将集合中的 Aggregation 从当前位置移动到新位置。

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

参数

fromIndex
Int32

要移动的 Aggregation 的从零开始的索引。

toIndex
Int32

要将 fromIndex 指定的 Aggregation 移动到的从零开始的索引。

返回

已移动的 Aggregation

例外

  • fromIndex 指定的值不是有效值, (小于零或大于,则) 的元素总数。
  • 指定的 toIndex 不是有效值, (小于零或大于,则) 元素总数。

适用于

Move(String, Int32)

将具有指定标识符的 Aggregation 移动到集合中的新位置。

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

参数

id
String

要移动的 Aggregation 的标识符。

toIndex
Int32

要将 fromIndex 指定的 Aggregation 移动到的从零开始的索引。

返回

已移动的 Aggregation

例外

  • id 不是集合中的有效 Aggregation 标识符。
  • 指定的 toIndex 不是有效值, (小于零或大于,则) 元素总数。

适用于