共用方式為


IDTSRuntimeConnectionCollection100.GetObjectByID(Int32) Method

Definition

Retrieves an IDTSRuntimeConnection100 object from a collection.

public:
 Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSRuntimeConnection100 ^ GetObjectByID(int lID);
[System.Runtime.InteropServices.DispId(20)]
public Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100 GetObjectByID (int lID);
[<System.Runtime.InteropServices.DispId(20)>]
abstract member GetObjectByID : int -> Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100
Public Function GetObjectByID (lID As Integer) As IDTSRuntimeConnection100

Parameters

lID
Int32

The ID of the IDTSRuntimeConnection100 to retrieve from the collection.

Returns

The IDTSRuntimeConnection100 object with the specified ID.

Attributes

Remarks

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.

Applies to