SqlCeConnection::BeginTransaction Method (IsolationLevel)
Visual Studio 2010
Begins a database transaction with the current IsolationLevel value.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
[SecurityTreatAsSafeAttribute] [SecurityCriticalAttribute] [SecurityPermissionAttribute(SecurityAction::Assert, UnmanagedCode = true)] public: SqlCeTransaction^ BeginTransaction( IsolationLevel isolationLevel )
Parameters
- isolationLevel
- Type: System.Data::IsolationLevel
The transaction isolation level for this connection.
Return Value
Type: System.Data.SqlServerCe::SqlCeTransactionAn object representing the new transaction.
The following example creates a SqlCeConnection and a SqlCeTransaction, and then demonstrates how to use the BeginTransaction, Commit, and Rollback methods.
Show: