System.Data.OleDb.OleDbTransaction.Rollback Method

Rolls back a transaction from a pending state.

Syntax

public override void Rollback ()

Remarks

The transaction can only be rolled back from a pending state (after OleDbConnection.BeginTransaction has been called, but before OleDbTransaction.Commit is called). The transaction will be rolled back in the event it is disposed before Commit or Rollback is called.

Requirements

Namespace: System.Data.OleDb
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0