C1.Data.Transactions Namespace > ClientTransaction Class : Scope Method |
'Declaration Public Function Scope() As System.IDisposable
public System.IDisposable Scope()
Exception | Description |
---|---|
System.InvalidOperationException | The ClientTransaction.State is not C1.LiveLinq.TransactionState.Open. |
The transaction tracks changes only when they are made inside an open scope.
Calling System.IDisposable.Dispose on the return value closes the scope.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2