Connection 屬性
Gets the AdomdConnection that the AdomdTransaction uses.
命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)
語法
'宣告
Public ReadOnly Property Connection As AdomdConnection
Get
'用途
Dim instance As AdomdTransaction
Dim value As AdomdConnection
value = instance.Connection
public AdomdConnection Connection { get; }
public:
property AdomdConnection^ Connection {
AdomdConnection^ get ();
}
member Connection : AdomdConnection
function get Connection () : AdomdConnection
屬性值
型別:Microsoft.AnalysisServices.AdomdClient. . :: . .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.