AdomdTransaction.Connection Property

Gets the AdomdConnection that the AdomdTransaction uses.

命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

語法

'宣告
Public ReadOnly Property Connection As AdomdConnection
public AdomdConnection Connection { get; }
public:
property AdomdConnection^ Connection {
    AdomdConnection^ get ();
}
/** @property */
public AdomdConnection get_Connection ()
public function get Connection () : AdomdConnection

屬性值

An AdomdConnection that contains a valid AdomdConnection reference.

備註

A single application can have multiple database connections, each with zero or more transactions. This property enables you to determine the connection object associated with a particular transaction.

AdomdTransaction objects cannot be reused across multiple AdomdConnection objects.

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

AdomdTransaction Class
AdomdTransaction Members
Microsoft.AnalysisServices.AdomdClient Namespace