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
參數
- connectionManager
型別:Microsoft.SqlServer.Dts.Runtime. . :: . .ConnectionManager
The connect manager to register in the package designer.
傳回值
型別:System. . :: . .Boolean
true if the connection is not nullNothingnullptrunitnull 參考 (在 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.