Metodo MSMQConn.AcquireConnection

Establishes the MSMQ connection and returns a connection object.

Spazio dei nomi  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Sintassi

'Dichiarazione
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
'Utilizzo
Dim instance As MSMQConn 
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

Parametri

Valore restituito

Tipo: System.Object
The connection object containing the MSMQ connection.

Osservazioni

During a call to 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.

Vedere anche

Riferimento

MSMQConn Classe

Spazio dei nomi Microsoft.SqlServer.Dts.ManagedConnections