OracleCommand.Transaction Property

Definition

Gets or sets the OracleTransaction within which the OracleCommand executes.

public:
 property System::Data::OracleClient::OracleTransaction ^ Transaction { System::Data::OracleClient::OracleTransaction ^ get(); void set(System::Data::OracleClient::OracleTransaction ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Data.OracleClient.OracleTransaction Transaction { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Transaction : System.Data.OracleClient.OracleTransaction with get, set
Public Property Transaction As OracleTransaction

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

See also