Share via


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