Microsoft.Isam.Esent.Interop.Update.Cancel C# (CSharp) Method

Cancel() public method

Cancel the update.
public Cancel ( ) : void
return void
        public void Cancel()
        {
            this.CheckObjectIsNotDisposed();
            if (!this.HasResource)
            {
                throw new InvalidOperationException("Not in an update");
            }

            Api.JetPrepareUpdate(this.sesid, this.tableid, JET_prep.Cancel);
            this.ResourceWasReleased();
        }

Usage Example

Beispiel #1
0
 public void TestSaveThrowsExceptionWhenUpdateIsCancelled()
 {
     var update = new Update(this.sesid, this.tableid, JET_prep.Insert);
     update.Cancel();
     update.Save();
 }
All Usage Examples Of Microsoft.Isam.Esent.Interop.Update::Cancel