Bewerken

Delen via


OleDbTransaction.Connection Property

Definition

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

Property Value

The OleDbConnection object associated with the transaction.

Remarks

A single application may have multiple database connections, each with zero or more transactions. This property lets you determine the connection object associated with a particular transaction created by BeginTransaction.

Applies to

See also