共用方式為


IDTSOutputCollection100.GetObjectByID 方法

Retrieves an IDTSOutput100 object that has the specified ID.

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

語法

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

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

參數

  • lID
    型別:System.Int32
    The ID of the output to retrieve from the collection.

傳回值

型別:Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSOutput100
The IDTSInput100 object that has the specified ID.

備註

If an output with the specified ID is not found in the collection, a Microsoft.SqlServer.Dts.Runtime.HResults.DTS_E_OBJECTNOTFOUND exception is thrown.

請參閱

參考

IDTSOutputCollection100 介面

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