Android.Database.Sqlite.SQLiteDatabase.SetTransactionSuccessful Method
Marks the current transaction as successful.

Syntax

[Android.Runtime.Register("setTransactionSuccessful", "()V", "GetSetTransactionSuccessfulHandler")]
public virtual void SetTransactionSuccessful ()

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif 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.

[Android Documentation]

Requirements

Namespace: Android.Database.Sqlite
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1