OracleCommand.Transaction Property

Definition

Gets or sets the OracleTransaction within which the OracleCommand executes.

C#
[System.ComponentModel.Browsable(false)]
public System.Data.OracleClient.OracleTransaction Transaction { get; set; }

Property Value

An OracleTransaction. The default is a null value.

Attributes

Remarks

You cannot set the 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 OracleTransaction object that is not connected to the same OracleConnection as the OracleCommand object, an exception will be thrown the next time you attempt to execute a statement.

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also