IDbTransaction.Connection 屬性

定義

指定要與交易產生關聯的連接物件。Specifies the Connection object to associate with the transaction.

public:
 property System::Data::IDbConnection ^ Connection { System::Data::IDbConnection ^ get(); };
public System.Data.IDbConnection Connection { get; }
member this.Connection : System.Data.IDbConnection
Public ReadOnly Property Connection As IDbConnection

屬性值

要與交易產生關聯的連接物件。The Connection object to associate with the transaction.

備註

單一應用程式可能會有多個資料庫連接, 每個都有零或多個交易。A single application may have multiple database connections, each with zero or more transactions. 這個屬性可讓您判斷與特定交易相關聯的連線物件。This property enables you to determine the connection object associated with a particular transaction.

適用於