Share via


CellPermissionCollection.Move Method

Definition

Overloads

Move(CellPermission, Int32)

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

Move(CellPermissionAccess, Int32)

Moves a CellPermission, with the specified access information, to a new position in the collection.

Move(Int32, Int32)

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

Move(CellPermission, Int32)

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

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

Parameters

item
CellPermission

The CellPermission to be moved.

toIndex
Int32

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

Exceptions

  • The specified CellPermission 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(CellPermissionAccess, Int32)

Moves a CellPermission, with the specified access information, to a new position in the collection.

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

Parameters

access
CellPermissionAccess

The access information of the CellPermission to be moved.

toIndex
Int32

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

Returns

The CellPermission that was moved.

Exceptions

  • access is not a valid access information to a CellPermission in 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 CellPermission in the collection from the current position to a new one.

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

Parameters

fromIndex
Int32

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

toIndex
Int32

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

Returns

The CellPermission 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