[]
Opens the transaction scope.
public IDisposable Scope()
| Type | Description |
|---|---|
| IDisposable | An instance of an IDisposable that will close the scope when its Dispose() method is called. |
The transaction tracks changes only when they are made inside an open scope.
Calling Dispose() on the return value closes the scope.
| Type | Condition |
|---|---|
| InvalidOperationException | The ClientTransaction.State is not Open. |