语言

IDTSRuntimeConnectionCollection100.SetIndex(Int32, Int32) 方法

定义

更改集合中运行时连接对象的位置。

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)

参数

lOldIndex
Int32

运行时连接的当前位置。

lNewIndex
Int32

运行时连接集合中的新位置。

属性

注解

该 SetIndex 方法将运行时连接在指定 lOldIndex 位置移动到指定位置 lNewIndex。 如果集合中的任一位置不在集合的边界之外,那么 Microsoft。SqlServer.Dts.Runtime.HResults.DTS_E_INVALIDINDEX例外。

适用于