Partager via


DataTransaction.RollbackTransaction Method

Rolls back, or voids, a transaction and returns the new current transaction level.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overridable Function RollbackTransaction As Integer
public virtual int RollbackTransaction()
public:
virtual int RollbackTransaction()
abstract RollbackTransaction : unit -> int  
override RollbackTransaction : unit -> int
public function RollbackTransaction() : int

Return Value

Type: System.Int32
An integer value indicating the new current transaction level.

Implements

IVsDataTransaction.RollbackTransaction()

Remarks

Notes to Inheritors

The base implementation of this method simply returns the original transaction level. The derived class should override this method.

.NET Framework Security

See Also

Reference

DataTransaction Class

Microsoft.VisualStudio.Data.Framework Namespace

CurrentTransactionLevel