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

注释

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.