Share via


AggregationAttributeCollection.Move 方法

定义

重载

Move(AggregationAttribute, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

将具有指定 AttributeID 的 AggregationAttribute 移动到集合中的新位置。

Move(AggregationAttribute, Int32)

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

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

参数

toIndex
Int32

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

例外

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

适用于

Move(Int32, Int32)

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

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

参数

fromIndex
Int32

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

toIndex
Int32

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

返回

已移动的 AggregationAttribute

例外

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

适用于

Move(String, Int32)

将具有指定 AttributeID 的 AggregationAttribute 移动到集合中的新位置。

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

参数

attributeId
String

要移动的 AggregationAttribute 的 AttributeID。

toIndex
Int32

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

返回

已移动的 AggregationAttribute

例外

  • attributeId 不是集合中的有效 AttributeID AggregationAttribute
  • 指定的 toIndex 不是有效值, (小于零或大于,则) 元素总数。

适用于