IDTSInputCollection100.SetIndex Method (Int32, Int32)


Changes the location of an IDTSInput100 object.

Namespace:   Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly:  Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)

void SetIndex(
	int lOldIndex,
	int lNewIndex


Type: System.Int32

The current location of the input in the collection.

Type: System.Int32

The new location of the input in the collection.

The SetIndex method moves the input 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.

Return to top