OleDbTransaction.Connection 属性
定义
获取与该事务关联的 OleDbConnection 对象,或者如果该事务不再有效,则为 null。Gets the OleDbConnection object associated with the transaction, or null if the transaction is no longer valid.
public:
property System::Data::OleDb::OleDbConnection ^ Connection { System::Data::OleDb::OleDbConnection ^ get(); };
public System.Data.OleDb.OleDbConnection Connection { get; }
public System.Data.OleDb.OleDbConnection? Connection { get; }
member this.Connection : System.Data.OleDb.OleDbConnection
Public ReadOnly Property Connection As OleDbConnection
属性值
与事务关联的 OleDbConnection 对象。The OleDbConnection object associated with the transaction.
注解
单个应用程序可以有多个数据库连接,每个连接都有零个或多个事务。A single application may have multiple database connections, each with zero or more transactions. 此属性可让你确定与创建的特定事务关联的连接对象 BeginTransaction 。This property lets you determine the connection object associated with a particular transaction created by BeginTransaction.