Share via


RoleCollection.Move Method

Definition

Overloads

Move(Role, Int32)

Moves the specified Role to a new position in the collection.

Move(Int32, Int32)

Moves a Role in the collection from the current position to a new one.

Move(String, Int32)

Moves a Role, with the specified identifier, to a new position in the collection.

Move(Role, Int32)

Moves the specified Role to a new position in the collection.

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

Parameters

item
Role

The Role to be moved.

toIndex
Int32

The zero-based index to which to move the specified Role.

Exceptions

  • The specified Role does not exist the collection.
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to

Move(Int32, Int32)

Moves a Role in the collection from the current position to a new one.

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

Parameters

fromIndex
Int32

The zero-based index of the Role to be moved.

toIndex
Int32

The zero-based index to which to move the Role specified by fromIndex.

Returns

The Role that was moved.

Exceptions

  • The specified fromIndex is not a valid value (less than zero or bigger then the total number of elements).
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to

Move(String, Int32)

Moves a Role, with the specified identifier, to a new position in the collection.

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

Parameters

id
String

The identifier of the Role to be moved.

toIndex
Int32

The zero-based index to which to move the Role specified by fromIndex.

Returns

The Role that was moved.

Exceptions

  • id is not a valid identifier to a Role in the collection.
  • The specified toIndex is not a valid value (less than zero or bigger then the total number of elements).

Applies to