Partager via


Connection propriété

Gets the AdomdConnection that the AdomdTransaction uses.

Espace de noms :  Microsoft.AnalysisServices.AdomdClient
Assembly :  Microsoft.AnalysisServices.AdomdClient (dans Microsoft.AnalysisServices.AdomdClient.dll)

Syntaxe

'Déclaration
Public ReadOnly Property Connection As AdomdConnection
    Get
'Utilisation
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

Valeur de la propriété

Type : Microsoft.AnalysisServices.AdomdClient. . :: . .AdomdConnection
An AdomdConnection that contains a valid AdomdConnection reference.

Notes

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.