共用方式為


PerspectiveDimensionCollection.Move 方法

定義

多載

Move(PerspectiveDimension, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

將具有指定 CubeDimensionID 的 PerspectiveDimension 移至集合中的新位置。

Move(PerspectiveDimension, Int32)

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

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

參數

toIndex
Int32

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

例外狀況

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

適用於

Move(Int32, Int32)

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

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

參數

fromIndex
Int32

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

toIndex
Int32

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

傳回

已移動的 PerspectiveDimension

例外狀況

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

適用於

Move(String, Int32)

將具有指定 CubeDimensionID 的 PerspectiveDimension 移至集合中的新位置。

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

參數

cubeDimensionId
String

要移動之 PerspectiveDimension 的 CubeDimensionID。

toIndex
Int32

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

傳回

已移動的 PerspectiveDimension

例外狀況

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

適用於