Transaction property

Specifies the SATransaction object in which the SACommand executes.

Visual Basic syntax

Public Shadows Property Transaction As SATransaction

C# syntax

public new SATransaction Transaction {get;set;}

Remarks

The default value is a null reference. In Visual Basic, this is Nothing.

You cannot set the Transaction property if it is already set to a specific value and the command is executing. If you set the transaction property to an SATransaction object that is not connected to the same SAConnection object as the SACommand object, an exception will be thrown the next time you attempt to execute a statement.

For more information, see Transaction processing.