Transaction property

Specifies the ULTransaction in which the ULCommand executes.

Syntax
Visual Basic
Public Property Transaction As ULTransaction
C#
public ULTransaction Transaction { get; set; }
Property value

The ULTransaction in which the ULCommand executes. This should be the current transaction of the connection specified by the ULCommand.Connection. The default is a null reference (Nothing in Visual Basic).

Remarks

If a command is reused after a transaction has been committed or rolled back, this property needs to be reset.

This is the strongly-typed version of System.Data.IDbCommand.Transaction and System.Data.Common.DbCommand.Transaction.

See also