System.Data.IDbTransaction.Rollback Method

Rolls back a transaction from a pending state.

Syntax

public void Rollback ()

Remarks

The transaction can only be rolled back from a pending state (after IDbConnection.BeginTransaction has been called, but before IDbTransaction.Commit is called).

Requirements

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