Npgsql Api Docs |

# NpgsqlTransaction.Connection Property

Gets the NpgsqlConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

[Visual Basic]
Overloads Public ReadOnly Property Connection As NpgsqlConnection
[C#]
new public NpgsqlConnection Connection {get;}

#### Property Value

The NpgsqlConnection object associated with the transaction.

#### See Also

NpgsqlTransaction Class | Npgsql Namespace