PerspectiveMeasureGroupCollection.Move 方法

定義

多載

Move(PerspectiveMeasureGroup, Int32)

將指定的 PerspectiveMeasureGroup 移動到集合中的新位置。

Move(Int32, Int32)

將集合中的 PerspectiveMeasureGroup 從目前位置移動到新的位置。

Move(String, Int32)

將具有指定 MeasureGroupID 的 PerspectiveMeasureGroup 移動到集合中的新位置。

Move(PerspectiveMeasureGroup, Int32)

將指定的 PerspectiveMeasureGroup 移動到集合中的新位置。

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

參數

toIndex
Int32

索引以零起始的索引,其為要將指定的 PerspectiveMeasureGroup 移動到的目標位置。

例外狀況

  • 指定的 PerspectiveMeasureGroup 不存在集合。
  • 指定的 toIndex 不是有效的值, (小於零或更大,則) 的專案總數。

適用於

Move(Int32, Int32)

將集合中的 PerspectiveMeasureGroup 從目前位置移動到新的位置。

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

參數

fromIndex
Int32

要移動的 PerspectiveMeasureGroup 以零起始的索引。

toIndex
Int32

以零起始的索引,其為要將 fromeIndex 所指定的 PerspectiveMeasureGroup 移動到的目標位置。

傳回

已移動的 PerspectiveMeasureGroup

例外狀況

  • 指定的 fromIndex 不是有效值, (小於零或大於零,則) 的專案總數。
  • 指定的 toIndex 不是有效的值, (小於零或更大,則) 的專案總數。

適用於

Move(String, Int32)

將具有指定 MeasureGroupID 的 PerspectiveMeasureGroup 移動到集合中的新位置。

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

參數

measureGroupId
String

要移動之 PerspectiveMeasureGroup 的 MeasureGroupID。

toIndex
Int32

以零起始的索引,其為要將 fromeIndex 所指定的 PerspectiveMeasureGroup 移動到的目標位置。

傳回

已移動的 PerspectiveMeasureGroup

例外狀況

  • measureGroupId 不是集合中 的有效 MeasureGroupID PerspectiveMeasureGroup
  • 指定的 toIndex 不是有效的值, (小於零或更大,則) 的專案總數。

適用於