LightningDB.LightningTransaction.Abort C# (CSharp) Method

Abort() public method

Abandon all the operations of the transaction instead of saving them. All cursors opened within the transaction will be closed by this call. The cursors and transaction handle will be freed and must not be used again after this call.
public Abort ( ) : void
return void
        public void Abort()
        {
            State = LightningTransactionState.Aborted;
            StateChanging?.Invoke(State);
            mdb_txn_abort(_handle);
        }