Npgsql API Documentation |

# NpgsqlCommand.Transaction Property

[This is preliminary documentation and subject to change.]

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

[Visual Basic]
<Browsable(Browsable=False)>
<DesignerSerializationVisibility(Visibility=(DesignerSerializationVisibility.Hidden))>
NotOverridable Public Property Transaction As IDbTransaction Implements _
IDbCommand.Transaction
[C#]
[Browsable(Browsable=False)]
[DesignerSerializationVisibility(Visibility=(DesignerSerializationVisibility.Hidden))]
public System.Data.IDbTransaction Transaction {get; set;}

#### Property Value

The NpgsqlTransaction. The default value is a null reference.

#### Implements

IDbCommand.Transaction

#### See Also

NpgsqlCommand Class | Npgsql Namespace