共用方式為


IDtsConnectionService.CreateConnectionFromDataSource 方法

Displays a list of existing data sources and allows users to create connection managers based on data sources.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Design
組件:  Microsoft.SqlServer.Dts.Design (在 Microsoft.SqlServer.Dts.Design.dll 中)

語法

'宣告
Function CreateConnectionFromDataSource As ArrayList
'用途
Dim instance As IDtsConnectionService 
Dim returnValue As ArrayList 

returnValue = instance.CreateConnectionFromDataSource()
ArrayList CreateConnectionFromDataSource()
ArrayList^ CreateConnectionFromDataSource()
abstract CreateConnectionFromDataSource : unit -> ArrayList
function CreateConnectionFromDataSource() : ArrayList

傳回值

型別:System.Collections.ArrayList
An ArrayList that contains the collection of the connections created. An empty collection is returned if an error occurs, or if the user cancels the request.

請參閱

參考

IDtsConnectionService 介面

Microsoft.SqlServer.Dts.Runtime.Design 命名空間