Android.Database.Sqlite.SQLiteDatabase.IsDbLockedByCurrentThread Property
Returns true if the current thread is holding an active connection to the database.

Syntax

[get: Android.Runtime.Register("isDbLockedByCurrentThread", "()Z", "GetIsDbLockedByCurrentThreadHandler")]
public virtual bool IsDbLockedByCurrentThread { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Returns true if the current thread is holding an active connection to the database.

The name of this method comes from a time when having an active connection to the database meant that the thread was holding an actual lock on the database. Nowadays, there is no longer a true "database lock" although threads may block if they cannot acquire a database connection to perform a particular operation.

[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