Freigeben über


SMOServerConn.AcquireConnection-Methode

Establishes the SMO connection and returns a connection object.

Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Syntax

'Declaration
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
'Usage
Dim instance As SMOServerConn 
Dim txn As Object 
Dim returnValue As Object 

returnValue = instance.AcquireConnection(txn)
public override Object AcquireConnection(
    Object txn
)
public:
virtual Object^ AcquireConnection(
    Object^ txn
) override
abstract AcquireConnection : 
        txn:Object -> Object  
override AcquireConnection : 
        txn:Object -> Object
public override function AcquireConnection(
    txn : Object
) : Object

Parameter

Rückgabewert

Typ: System.Object
The connection object that contains the SMO connection.

Hinweise

During a call to the AcquireConnection, the actual connection is created using properties that are set on the ConnectionManagerBase object, as well as any properties specific to the connection type that have been set on this class.

Siehe auch

Verweis

SMOServerConn Klasse

Microsoft.SqlServer.Dts.ManagedConnections-Namespace