Share via


IDTSOutputColumnCollection100.SetIndex(Int32, Int32) Method

Definition

Moves an output column to a new location 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 index of the output column to move.

lNewIndex
Int32

The new location in the collection.

Attributes

Remarks

lOldIndex and lNewIndex are zero-based parameters. This method moves the IDTSOutputColumn100 object located at lOldIndex to the location in the collection specified by lNewIndex. Any columns after lOldIndex are shifted up in the collection until lNewIndex is reached.

As an example, consider an output column collection with the following IDs for the output columns:

  • Col1

  • Col2

  • Col3

  • Col4

If SetIndex is called with lOldIndex equal to 0 and lNewIndex equal to 2, the modified collection has the following order:

  • Col2

  • Col3

  • Col1

  • Col4

Applies to