Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DbTransaction.Rollback Method

Definition

Namespace:
System.Data.Common
Assembly:
System.Data.Common.dll
Assemblies:
netstandard.dll, System.Data.Common.dll
Assembly:
System.Data.dll
Assembly:
netstandard.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
Rollback()

When overridden in a derived class, rolls back a transaction from a pending state.

Rollback(String)

Rolls back all commands that were executed after the specified savepoint was established.

Rollback()

Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs

When overridden in a derived class, rolls back a transaction from a pending state.

public:
 abstract void Rollback();
public abstract void Rollback();
abstract member Rollback : unit -> unit
Public MustOverride Sub Rollback ()

Implements

See also

Applies to

Rollback(String)

Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs

Rolls back all commands that were executed after the specified savepoint was established.

public:
 virtual void Rollback(System::String ^ savepointName);
public virtual void Rollback(string savepointName);
abstract member Rollback : string -> unit
override this.Rollback : string -> unit
Public Overridable Sub Rollback (savepointName As String)

Parameters

savepointName
String

The name of the savepoint to roll back to.

Applies to


Feedback

Was this page helpful?