Export (0) Print
Expand All

OracleCommand.Transaction Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the OracleTransaction within which the OracleCommand executes.

[Visual Basic]
Public Property Transaction As OracleTransaction
[C#]
public OracleTransaction Transaction {get; set;}
[C++]
public: __property OracleTransaction* get_Transaction();
public: __property void set_Transaction(OracleTransaction*);
[JScript]
public function get Transaction() : OracleTransaction;
public function set Transaction(OracleTransaction);

Property Value

An OracleTransaction. The default is a null value.

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleCommand Class | OracleCommand Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft