System.Data.OleDb.OleDbCommand.Transaction Property

Gets or sets the System.Data.OleDb.OleDbTransaction within which the System.Data.OleDb.OleDbCommand executes.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public OleDbTransaction Transaction { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You cannot set the OleDbCommand.Transaction property if it is already set to a specific value, and the command is in the process of executing. If you set the transaction property to an System.Data.OleDb.OleDbTransaction object that is not connected to the same System.Data.OleDb.OleDbConnection as the System.Data.OleDb.OleDbCommand object, an exception is thrown the next time that you try to execute a statement.

Requirements

Namespace: System.Data.OleDb
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0