다음을 통해 공유


IDtsConnectionService.AddConnectionToPackage 메서드

Adds existing connections to a package designer so that the designer is aware of a new connection manager

네임스페이스:  Microsoft.SqlServer.Dts.Runtime.Design
어셈블리:  Microsoft.SqlServer.Dts.Design(Microsoft.SqlServer.Dts.Design.dll)

구문

‘선언
Function AddConnectionToPackage ( _
    connectionManager As ConnectionManager _
) As Boolean
‘사용 방법
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

매개 변수

반환 값

유형: System.Boolean
true if the connection is not nullnull 참조(Visual Basic에서는 Nothing), false otherwise.

주의

This function needs to be called only if a connection manager was added directly to the package without going through the CreateConnection method.

참고 항목

참조

IDtsConnectionService 인터페이스

Microsoft.SqlServer.Dts.Runtime.Design 네임스페이스