Share via


IDTSRuntimeConnectionCollection90.SetIndex Method

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

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

Syntax

'Declaration
<DispIdAttribute(19)> _
Sub SetIndex ( _
    <InAttribute> lOldIndex As Integer, _
    <InAttribute> lNewIndex As Integer _
)
[DispIdAttribute(19)] 
void SetIndex (
    [InAttribute] int lOldIndex,
    [InAttribute] int lNewIndex
)
[DispIdAttribute(19)] 
void SetIndex (
    [InAttribute] int lOldIndex, 
    [InAttribute] int lNewIndex
)
/** @attribute DispIdAttribute(19) */ 
void SetIndex (
    /** @attribute InAttribute() */ int lOldIndex, 
    /** @attribute InAttribute() */ int lNewIndex
)
DispIdAttribute(19) 
function SetIndex (
    lOldIndex : int, 
    lNewIndex : int
)

Parameters

  • lOldIndex
    The current location of the run-time connection.
  • lNewIndex
    The new location in the collection of the run-time connection.

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

IDTSRuntimeConnectionCollection90 Interface
IDTSRuntimeConnectionCollection90 Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace