DataSourceCollection.Move DataSourceCollection.Move DataSourceCollection.Move Method

Definition

Overloads

Move(DataSource, Int32) Move(DataSource, Int32) Move(DataSource, Int32)

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

Move(Int32, Int32) Move(Int32, Int32) Move(Int32, Int32)

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

Move(String, Int32) Move(String, Int32) Move(String, Int32)

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

Move(DataSource, Int32) Move(DataSource, Int32) Move(DataSource, Int32)

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

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

Parameters

item
DataSource DataSource DataSource

The DataSource to be moved.

toIndex
Int32 Int32 Int32

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

Exceptions

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

Move(Int32, Int32) Move(Int32, Int32) Move(Int32, Int32)

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

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

Parameters

fromIndex
Int32 Int32 Int32

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

toIndex
Int32 Int32 Int32

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

Returns

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).

Move(String, Int32) Move(String, Int32) Move(String, Int32)

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

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

Parameters

id
String String String

The identifier of the DataSource to be moved.

toIndex
Int32 Int32 Int32

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

Returns

Exceptions

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

Applies to