DbTransaction.DbConnection Property

 

Specifies the DbConnection object associated with the transaction.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

abstract DbConnection : DbConnection with get

Property Value

Type: System.Data.Common.DbConnection

The DbConnection object associated with the transaction.

A single application may have multiple data source connections, each with zero or more transactions. This property allows you to determine the connection object associated with a particular transaction.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: