共用方式為


GetObjectByID 方法

Retrieves an IDTSRuntimeConnection100 object from a collection.

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

語法

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

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

參數

備註

The GetObjectByID method retrieves the run-time connection object with the ID matching the ID parameter. If an input does not exist with this ID, a Microsoft.SqlServer.Dts.Runtime.HResults.DTS_E_OBJECTIDNOTFOUND exception occurs.