Udostępnij przez


MSMQConn.AcquireConnection Method

Establishes the Message Queuing (MSMQ) connection and returns a connection object.

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

Syntax

'Deklaracja
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
public override Object AcquireConnection (
    Object txn
)
public:
virtual Object^ AcquireConnection (
    Object^ txn
) override
public Object AcquireConnection (
    Object txn
)
public override function AcquireConnection (
    txn : Object
) : Object

Parameters

  • txn
    The handle to a transaction type.

Return Value

The connection object containing the Message Queuing connection.

Remarks

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.