Share via


SQLiteDatabase.SetLockingEnabled(Boolean) Method

Definition

Caution

deprecated

Control whether or not the SQLiteDatabase is made thread-safe by using locks around critical sections.

[Android.Runtime.Register("setLockingEnabled", "(Z)V", "GetSetLockingEnabled_ZHandler")]
[System.Obsolete("deprecated")]
public virtual void SetLockingEnabled (bool lockingEnabled);
[<Android.Runtime.Register("setLockingEnabled", "(Z)V", "GetSetLockingEnabled_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetLockingEnabled : bool -> unit
override this.SetLockingEnabled : bool -> unit

Parameters

lockingEnabled
Boolean

set to true to enable locks, false otherwise

Attributes

Remarks

Control whether or not the SQLiteDatabase is made thread-safe by using locks around critical sections. This is pretty expensive, so if you know that your DB will only be used by a single thread then you should set this to false. The default is true.

This member is deprecated. This method now does nothing. Do not use.

Java documentation for android.database.sqlite.SQLiteDatabase.setLockingEnabled(boolean).

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