DatabaseCollection.Move DatabaseCollection.Move DatabaseCollection.Move Method

Definition

Moves a Database to a new index in the collection.

Overloads

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

Moves a Database to a new index in the collection.

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

Moves a Database at the current specified index to a new specified index in the collection.

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

Moves a Database, with the specified identifier, to the specified index in the collection.

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

Moves a Database to a new index in the collection.

public:
 void Move(Microsoft::AnalysisServices::Database ^ item, int toIndex);
public void Move (Microsoft.AnalysisServices.Database item, int toIndex);
Public Sub Move (item As Database, toIndex As Integer)
Parameters
item
Database Database Database

The Database to be moved.

toIndex
Int32 Int32 Int32

The zero-based index to which to move the Database specified by item.

Exceptions

toIndex is less than zero.

-or-

toIndex is equal to or greater than Count.

-or-

item is not contained by the collection.

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

Moves a Database at the current specified index to a new specified index in the collection.

public:
 Microsoft::AnalysisServices::Database ^ Move(int fromIndex, int toIndex);
public Microsoft.AnalysisServices.Database Move (int fromIndex, int toIndex);
Public Function Move (fromIndex As Integer, toIndex As Integer) As Database
Parameters
fromIndex
Int32 Int32 Int32

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

toIndex
Int32 Int32 Int32

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

Returns

The Database to be moved.

Exceptions

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

toIndex is less than zero.

-or-

toIndex is equal to or greater than Count.

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

Moves a Database, with the specified identifier, to the specified index in the collection.

public:
 Microsoft::AnalysisServices::Database ^ Move(System::String ^ id, int toIndex);
public Microsoft.AnalysisServices.Database Move (string id, int toIndex);
Public Function Move (id As String, toIndex As Integer) As Database
Parameters
id
String String String

The identifier of the Database to be moved.

toIndex
Int32 Int32 Int32

The zero-based index to which to move the Database specified by id.

Returns

The Database to be moved.

Exceptions

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

id is not contained by the collection.

Applies to