共用方式為


PerspectiveHierarchyCollection.Move 方法

定義

多載

Move(PerspectiveHierarchy, Int32)

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

Move(Int32, Int32)

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

Move(String, Int32)

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

Move(PerspectiveHierarchy, Int32)

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

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

參數

toIndex
Int32

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

例外狀況

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

適用於

Move(Int32, Int32)

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

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

參數

fromIndex
Int32

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

toIndex
Int32

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

傳回

已移動的 PerspectiveHierarchy

例外狀況

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

適用於

Move(String, Int32)

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

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

參數

hierarchyId
String

要移動的 PerspectiveHierarchy 的 HierarchyID。

toIndex
Int32

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

傳回

已移動的 PerspectiveHierarchy

例外狀況

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

適用於