共用方式為


IDTSPipeline100.GetObjectByID 方法

Retrieves an object contained in the data flow task by using the ID of the object.

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

語法

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

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

參數

  • lID
    型別:System.Int32
    The ID of the object to retrieve.

傳回值

型別:Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject100
The IDTSObject100 interface of the object that is retrieved.

備註

If an object with the specified ID is not found, an DTS_E_OBJECTIDNOTFOUND exception is thrown.

請參閱

參考

IDTSPipeline100 介面

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