共用方式為


PerspectiveMeasureCollection.Move 方法

定義

多載

Move(PerspectiveMeasure, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

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

Move(PerspectiveMeasure, Int32)

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

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

參數

item
PerspectiveMeasure

要移動的 PerspectiveMeasure

toIndex
Int32

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

例外狀況

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

適用於

Move(Int32, Int32)

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

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

參數

fromIndex
Int32

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

toIndex
Int32

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

傳回

已移動的 PerspectiveMeasure

例外狀況

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

適用於

Move(String, Int32)

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

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

參數

measureId
String

要移動之 PerspectiveMeasure 的 MeasureID。

toIndex
Int32

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

傳回

已移動的 PerspectiveMeasure

例外狀況

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

適用於