Metoda AggregationInstanceDimensionCollection.Move (Int32, Int32)
Przenosi określony AggregationInstanceDimension z jednego miejsca do innego położenia kolekcja.
Przestrzeń nazw: Microsoft.AnalysisServices
Zestaw: Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)
Składnia
'Deklaracja
Public Function Move ( _
fromIndex As Integer, _
toIndex As Integer _
) As AggregationInstanceDimension
'Użycie
Dim instance As AggregationInstanceDimensionCollection
Dim fromIndex As Integer
Dim toIndex As Integer
Dim returnValue As AggregationInstanceDimension
returnValue = instance.Move(fromIndex, _
toIndex)
public AggregationInstanceDimension Move(
int fromIndex,
int toIndex
)
public:
AggregationInstanceDimension^ Move(
int fromIndex,
int toIndex
)
member Move :
fromIndex:int *
toIndex:int -> AggregationInstanceDimension
public function Move(
fromIndex : int,
toIndex : int
) : AggregationInstanceDimension
Parametry
- fromIndex
Typ: System.Int32
Określa położenie indeksu byłego kolekcja
- toIndex
Typ: System.Int32
Określa nową pozycję indeksu kolekcja.
Wartość zwracana
Typ: Microsoft.AnalysisServices.AggregationInstanceDimension
AggregationInstanceDimension , Został przeniesiony kolekcja.
Wyjątki
Wyjątek | Warunek |
---|---|
ArgumentOutOfRangeException | Może pojawić się jeden z następujących komunikatów o błędach: toIndexjest mniejszy od zera. toIndexjest równa lub większa niż [H:Microsoft.AnalysisServices.ModelComponentCollection.Count]. itemnie jest zawarty kolekcja. |