Поделиться через


MSMQConn.AcquireConnection Method

Establishes the MSMQ connection and returns a connection object.

Пространство имен: Microsoft.SqlServer.Dts.ManagedConnections
Сборка: Microsoft.SqlServer.ManagedConnections (in microsoft.sqlserver.managedconnections.dll)

Синтаксис

'Декларация
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

Параметры

  • txn
    The handle to a transaction type.

Возвращаемое значение

The connection object containing the MSMQ connection.

Замечания

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.

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

MSMQConn Class
MSMQConn Members
Microsoft.SqlServer.Dts.ManagedConnections Namespace