共用方式為


IDTSManagedHelper100.GetManagedConnection 方法

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

Returns a managed connection.

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

語法

'宣告
Function GetManagedConnection ( _
    bstrAssemblyQualifiedName As String, _
    bstrConnectionString As String, _
    pTransaction As Object _
) As Object
'用途
Dim instance As IDTSManagedHelper100 
Dim bstrAssemblyQualifiedName As String 
Dim bstrConnectionString As String 
Dim pTransaction As Object 
Dim returnValue As Object 

returnValue = instance.GetManagedConnection(bstrAssemblyQualifiedName, _
    bstrConnectionString, pTransaction)
Object GetManagedConnection(
    string bstrAssemblyQualifiedName,
    string bstrConnectionString,
    Object pTransaction
)
Object^ GetManagedConnection(
    [InAttribute] String^ bstrAssemblyQualifiedName, 
    [InAttribute] String^ bstrConnectionString, 
    [InAttribute] Object^ pTransaction
)
abstract GetManagedConnection : 
        bstrAssemblyQualifiedName:string * 
        bstrConnectionString:string * 
        pTransaction:Object -> Object
function GetManagedConnection(
    bstrAssemblyQualifiedName : String, 
    bstrConnectionString : String, 
    pTransaction : Object
) : Object

參數

  • bstrAssemblyQualifiedName
    型別:System.String
    The name of the qualified assembly.
  • bstrConnectionString
    型別:System.String
    The connection string.
  • pTransaction
    型別:System.Object
    The connection transaction.

傳回值

型別:System.Object
A managed connection.

備註

For more information, see ManagedHelper.

請參閱

參考

IDTSManagedHelper100 介面

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