[]
        
(Showing Draft Content)

C1.Data.Transactions.ClientTransaction.Scope

Scope Method

Scope()

Opens the transaction scope.

Declaration
public IDisposable Scope()
Returns
Type Description
IDisposable

An instance of an IDisposable that will close the scope when its Dispose() method is called.

Implements
Remarks

The transaction tracks changes only when they are made inside an open scope.

Calling Dispose() on the return value closes the scope.

Exceptions
Type Condition
InvalidOperationException

The ClientTransaction.State is not Open.