共用方式為


IDTSConnections100.Add 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Adds the connection manager of the specified connection type to collection.

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

語法

'宣告
Function Add ( _
    bstrConnectionType As String _
) As IDTSConnectionManager100
'用途
Dim instance As IDTSConnections100 
Dim bstrConnectionType As String 
Dim returnValue As IDTSConnectionManager100 

returnValue = instance.Add(bstrConnectionType)
IDTSConnectionManager100 Add(
    string bstrConnectionType
)
IDTSConnectionManager100^ Add(
    [InAttribute] String^ bstrConnectionType
)
abstract Add : 
        bstrConnectionType:string -> IDTSConnectionManager100
function Add(
    bstrConnectionType : String
) : IDTSConnectionManager100

參數

  • bstrConnectionType
    型別:System.String
    The connection type for the connection manager.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100
The connection manager that was added to the collection.

備註

For more information, see Connections.

請參閱

參考

IDTSConnections100 介面

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