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 命名空间