SQLiteOpenHelper.SetWriteAheadLoggingEnabled(Boolean) Method

Definition

Enables or disables the use of write-ahead logging for the database.

[Android.Runtime.Register("setWriteAheadLoggingEnabled", "(Z)V", "GetSetWriteAheadLoggingEnabled_ZHandler")]
public virtual void SetWriteAheadLoggingEnabled (bool enabled);
[<Android.Runtime.Register("setWriteAheadLoggingEnabled", "(Z)V", "GetSetWriteAheadLoggingEnabled_ZHandler")>]
abstract member SetWriteAheadLoggingEnabled : bool -> unit
override this.SetWriteAheadLoggingEnabled : bool -> unit

Parameters

enabled
Boolean

True if write-ahead logging should be enabled, false if it should be disabled.

Attributes

Remarks

Enables or disables the use of write-ahead logging for the database.

Write-ahead logging cannot be used with read-only databases so the value of this flag is ignored if the database is opened read-only.

Java documentation for android.database.sqlite.SQLiteOpenHelper.setWriteAheadLoggingEnabled(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

See also