Compartilhar via


SQLiteOpenHelper.OnCreate(SQLiteDatabase) Method

Definition

Called when the database is created for the first time.

[Android.Runtime.Register("onCreate", "(Landroid/database/sqlite/SQLiteDatabase;)V", "GetOnCreate_Landroid_database_sqlite_SQLiteDatabase_Handler")]
public abstract void OnCreate (Android.Database.Sqlite.SQLiteDatabase? db);
[<Android.Runtime.Register("onCreate", "(Landroid/database/sqlite/SQLiteDatabase;)V", "GetOnCreate_Landroid_database_sqlite_SQLiteDatabase_Handler")>]
abstract member OnCreate : Android.Database.Sqlite.SQLiteDatabase -> unit

Parameters

db
SQLiteDatabase

The database.

Attributes

Remarks

Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.

Java documentation for android.database.sqlite.SQLiteOpenHelper.onCreate(android.database.sqlite.SQLiteDatabase).

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