SQLiteDatabase.IsDbLockedByCurrentThread Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true if the current thread is holding an active connection to the database.
public virtual bool IsDbLockedByCurrentThread { [Android.Runtime.Register("isDbLockedByCurrentThread", "()Z", "GetIsDbLockedByCurrentThreadHandler")] get; }
[<get: Android.Runtime.Register("isDbLockedByCurrentThread", "()Z", "GetIsDbLockedByCurrentThreadHandler")>]
member this.IsDbLockedByCurrentThread : bool
Property Value
True if the current thread is holding an active connection to the database.
- Attributes
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.
Java documentation for android.database.sqlite.SQLiteDatabase.isDbLockedByCurrentThread()
.
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.