Android.Database.Sqlite.SQLiteOpenHelper.OnConfigure Method
Called when the database connection is being configured, to enable features such as write-ahead logging or foreign key support.

Syntax

[Android.Runtime.Register("onConfigure", "(Landroid/database/sqlite/SQLiteDatabase;)V", "GetOnConfigure_Landroid_database_sqlite_SQLiteDatabase_Handler")]
public virtual void OnConfigure (SQLiteDatabase db)

Parameters

db
The database.

Remarks

Called when the database connection is being configured, to enable features such as write-ahead logging or foreign key support.

This method is called before SQLiteOpenHelper.OnCreate(SQLiteDatabase), SQLiteOpenHelper.OnUpgrade(SQLiteDatabase, System.Int32, System.Int32), SQLiteOpenHelper.OnDowngrade(SQLiteDatabase, System.Int32, System.Int32), or SQLiteOpenHelper.OnOpen(SQLiteDatabase) are called. It should not modify the database except to configure the database connection as required.

This method should only call methods that configure the parameters of the database connection, such as SQLiteDatabase.EnableWriteAheadLoggingSQLiteDatabase.SetForeignKeyConstraintsEnabled(bool), SQLiteDatabase.SetLocale(Java.Util.Locale), SQLiteDatabase.SetMaximumSize(long), or executing PRAGMA statements.

[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 16