Transaction property

Specifies the SATransaction object in which the SACommand executes.

Syntax
Visual Basic

Public Property Transaction As SATransaction
C#

public SATransaction Transaction  { get; set; }
Property value

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

Remarks

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.

See also