共用方式為


IDTSRuntimeConnectionCollection100.NewAt 方法

Adds a new run-time connection at the specified location in a collection.

命名空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件:  Microsoft.SqlServer.DTSPipelineWrap (在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)

語法

'宣告
Function NewAt ( _
    lIndex As Integer _
) As IDTSRuntimeConnection100
'用途
Dim instance As IDTSRuntimeConnectionCollection100 
Dim lIndex As Integer 
Dim returnValue As IDTSRuntimeConnection100 

returnValue = instance.NewAt(lIndex)
IDTSRuntimeConnection100 NewAt(
    int lIndex
)
IDTSRuntimeConnection100^ NewAt(
    [InAttribute] int lIndex
)
abstract NewAt : 
        lIndex:int -> IDTSRuntimeConnection100
function NewAt(
    lIndex : int
) : IDTSRuntimeConnection100

參數

  • lIndex
    型別:System.Int32
    The location in the collection to add the new run-time connection.

傳回值

型別:Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100
The newly created IDTSRuntimeConnection100 connection.

備註

The NewAt method creates a new run-time connection at the specified location in the collection and returns the newly created connection object. If the lIndex parameter is outside the bounds of the collection then an Microsoft.SqlServer.Dts.Runtime.HResults.DTS_E_INVALIDINDEX exception is thrown.

請參閱

參考

IDTSRuntimeConnectionCollection100 介面

Microsoft.SqlServer.Dts.Pipeline.Wrapper 命名空間