SQLiteDatabase.SetTransactionSuccessful Method

Definition

Marks the current transaction as successful.

[Android.Runtime.Register("setTransactionSuccessful", "()V", "GetSetTransactionSuccessfulHandler")]
public virtual void SetTransactionSuccessful ();
[<Android.Runtime.Register("setTransactionSuccessful", "()V", "GetSetTransactionSuccessfulHandler")>]
abstract member SetTransactionSuccessful : unit -> unit
override this.SetTransactionSuccessful : unit -> unit
Attributes

Exceptions

if the current thread is not in a transaction or the transaction is already marked as successful.

Remarks

Marks the current transaction as successful. Do not do any more database work between calling this and calling endTransaction. Do as little non-database work as possible in that situation too. If any errors are encountered between this and endTransaction the transaction will still be committed.

Java documentation for android.database.sqlite.SQLiteDatabase.setTransactionSuccessful().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to