Udostępnij za pośrednictwem


Metoda IDtsConnectionService.AddConnectionToPackage

Dodaje istniejące połączenia projektanta pakiet, tak więc projektant jest świadomy nowego menedżer połączeń

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime.Design
Zestaw:  Microsoft.SqlServer.Dts.Design (w Microsoft.SqlServer.Dts.Design.dll)

Składnia

'Deklaracja
Function AddConnectionToPackage ( _
    connectionManager As ConnectionManager _
) As Boolean
'Użycie
Dim instance As IDtsConnectionService
Dim connectionManager As ConnectionManager
Dim returnValue As Boolean

returnValue = instance.AddConnectionToPackage(connectionManager)
bool AddConnectionToPackage(
    ConnectionManager connectionManager
)
bool AddConnectionToPackage(
    ConnectionManager^ connectionManager
)
abstract AddConnectionToPackage : 
        connectionManager:ConnectionManager -> bool 
function AddConnectionToPackage(
    connectionManager : ConnectionManager
) : boolean

Parametry

Wartość zwracana

Typ: System.Boolean
TRUE , jeśli połączenie nie jest nullodwołanie o wartości null (Nothing w języku Visual Basic), false inaczej.

Uwagi

Ta funkcja musi zostać wywołana tylko wtedy, gdy Menedżer połączeń został dodany bezpośrednio do pakiet bez pośrednictwa CreateConnection metoda.