Android.Database.Sqlite.SQLiteOpenHelper.OnOpen Method
Called when the database has been opened.

Syntax

[Android.Runtime.Register("onOpen", "(Landroid/database/sqlite/SQLiteDatabase;)V", "GetOnOpen_Landroid_database_sqlite_SQLiteDatabase_Handler")]
public virtual void OnOpen (SQLiteDatabase db)

Parameters

db
The database.

Remarks

Called when the database has been opened. The implementation should check SQLiteDatabase.IsReadOnly before updating the database.

This method is called after the database connection has been configured and after the database schema has been created, upgraded or downgraded as necessary. If the database connection must be configured in some way before the schema is created, upgraded, or downgraded, do it in SQLiteOpenHelper.OnConfigure(SQLiteDatabase) instead.

[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