Partager via


Méthode IDTSRuntimeConnectionCollection100.GetObjectByID

Retrieves an IDTSRuntimeConnection100 object from a collection.

Espace de noms :  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly :  Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntaxe

'Déclaration
Function GetObjectByID ( _
    lID As Integer _
) As IDTSRuntimeConnection100
'Utilisation
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

Paramètres

Valeur de retour

Type : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeConnection100
The IDTSRuntimeConnection100 object with the specified ID.

Notes

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.

Voir aussi

Référence

IDTSRuntimeConnectionCollection100 Interface

Espace de noms Microsoft.SqlServer.Dts.Pipeline.Wrapper