Npgsql API Documentation |

# NpgsqlTransaction.Connection Property

[This is preliminary documentation and subject to change.]

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

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

#### Property Value

The NpgsqlConnection object associated with the transaction.

#### See Also

NpgsqlTransaction Class | Npgsql Namespace