IDTSRuntimeConnectionCollection100.SetIndex(Int32, Int32) Method

Definition

Changes the location of the run-time connection object in a collection.

public:
 void SetIndex(int lOldIndex, int lNewIndex);
[System.Runtime.InteropServices.DispId(19)]
public void SetIndex (int lOldIndex, int lNewIndex);
[<System.Runtime.InteropServices.DispId(19)>]
abstract member SetIndex : int * int -> unit
Public Sub SetIndex (lOldIndex As Integer, lNewIndex As Integer)

Parameters

lOldIndex
Int32

The current location of the run-time connection.

lNewIndex
Int32

The new location in the collection of the run-time connection.

Attributes

Remarks

The SetIndex method moves the run-time connection at the location specified by lOldIndex to the location specified by lNewIndex. If either of the locations in the collection is outside the bounds of the collection, a Microsoft.SqlServer.Dts.Runtime.HResults.DTS_E_INVALIDINDEX exception occurs.

Applies to