VistaDB 5






VistaDB.Provider Namespace > VistaDBConnection Class > BeginTransaction Method : BeginTransaction(IsolationLevel) Method
Specifies the isolation level for the transaction. VistaDB supports only ReadCommited isolation level. Any other isolation level will result in a VistaDBSQLException.
BeginTransaction(IsolationLevel) Method
Starts a database transaction.
Syntax
'Declaration
 
Public Overloads Shadows Function BeginTransaction( _
   ByVal isolationLevel As System.Data.IsolationLevel _
) As VistaDBTransaction
'Usage
 
Dim instance As VistaDBConnection
Dim isolationLevel As System.Data.IsolationLevel
Dim value As VistaDBTransaction
 
value = instance.BeginTransaction(isolationLevel)
public new VistaDBTransaction BeginTransaction( 
   System.Data.IsolationLevel isolationLevel
)
public function BeginTransaction( 
    isolationLevel: System.Data.IsolationLevel
): VistaDBTransaction; 
public hide function BeginTransaction( 
   isolationLevel : System.Data.IsolationLevel
) : VistaDBTransaction;
public: new VistaDBTransaction* BeginTransaction( 
   System.Data.IsolationLevel isolationLevel
) 
public:
new VistaDBTransaction^ BeginTransaction( 
   System.Data.IsolationLevel isolationLevel
) 

Parameters

isolationLevel
Specifies the isolation level for the transaction. VistaDB supports only ReadCommited isolation level. Any other isolation level will result in a VistaDBSQLException.

Return Value

An object representing the new transaction.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also