Udostępnij za pośrednictwem


Metoda AggregationInstanceMeasureCollection.Move (Int32, Int32)

Przenosi określony AggregationInstanceMeasure 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 AggregationInstanceMeasure
'Użycie
Dim instance As AggregationInstanceMeasureCollection
Dim fromIndex As Integer
Dim toIndex As Integer
Dim returnValue As AggregationInstanceMeasure

returnValue = instance.Move(fromIndex, _
    toIndex)
public AggregationInstanceMeasure Move(
    int fromIndex,
    int toIndex
)
public:
AggregationInstanceMeasure^ Move(
    int fromIndex, 
    int toIndex
)
member Move : 
        fromIndex:int * 
        toIndex:int -> AggregationInstanceMeasure 
public function Move(
    fromIndex : int, 
    toIndex : int
) : AggregationInstanceMeasure

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.AggregationInstanceMeasure
AggregationInstanceMeasure , 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.