Share via


DataTransaction.BeginTransaction Method

Initiates 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 BeginTransaction As Integer
'Usage
Dim instance As DataTransaction 
Dim returnValue As Integer 

returnValue = instance.BeginTransaction()
public virtual int BeginTransaction()
public:
virtual int BeginTransaction()
public function BeginTransaction() : int

Return Value

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

Implements

IVsDataTransaction.BeginTransaction()

Remarks

Any exception that occurs indicates that a provider-specific exception occurred while beginning the transaction.

Notes to Inheritors:

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

.NET Framework Security

See Also

Reference

DataTransaction Class

DataTransaction Members

Microsoft.VisualStudio.Data.Framework Namespace

CurrentTransactionLevel