SetIndex 方法
Changes the location of the run-time connection object in a collection.
命名空間: Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件: Microsoft.SqlServer.DTSPipelineWrap (在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)
語法
'宣告
Sub SetIndex ( _
lOldIndex As Integer, _
lNewIndex As Integer _
)
'用途
Dim instance As IDTSRuntimeConnectionCollection100
Dim lOldIndex As Integer
Dim lNewIndex As Integer
instance.SetIndex(lOldIndex, lNewIndex)
void SetIndex(
int lOldIndex,
int lNewIndex
)
void SetIndex(
[InAttribute] int lOldIndex,
[InAttribute] int lNewIndex
)
abstract SetIndex :
lOldIndex:int *
lNewIndex:int -> unit
function SetIndex(
lOldIndex : int,
lNewIndex : int
)
參數
- lOldIndex
型別:System. . :: . .Int32
The current location of the run-time connection.
- lNewIndex
型別:System. . :: . .Int32
The new location in the collection of the run-time connection.
備註
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.