Udostępnij przez


Metoda RoleCollection.Move (Role, Int32)

Przesuwa Role do nowego indeksu kolekcja.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
Public Sub Move ( _
    item As Role, _
    toIndex As Integer _
)
'Użycie
Dim instance As RoleCollection
Dim item As Role
Dim toIndex As Integer

instance.Move(item, toIndex)
public void Move(
    Role item,
    int toIndex
)
public:
void Move(
    Role^ item, 
    int toIndex
)
member Move : 
        item:Role * 
        toIndex:int -> unit 
public function Move(
    item : Role, 
    toIndex : int
)

Parametry

  • toIndex
    Typ: System.Int32
    Indeks od zera do którego należy przenieść Role określonych przez item.

Wyjątki

Wyjątek Warunek
ArgumentOutOfRangeException

toIndexjest mniejszy od zera.

- lub -

toIndexjest równa lub większa niż [H:Microsoft.AnalysisServices.ModelComponentCollection.Count].

- lub -

itemnie istnieje kolekcja.