SQLiteQueryBuilder.Insert(SQLiteDatabase, ContentValues) Method

Definition

Perform an insert by combining all current settings and the information passed into this method.

[Android.Runtime.Register("insert", "(Landroid/database/sqlite/SQLiteDatabase;Landroid/content/ContentValues;)J", "GetInsert_Landroid_database_sqlite_SQLiteDatabase_Landroid_content_ContentValues_Handler", ApiSince=30)]
public virtual long Insert (Android.Database.Sqlite.SQLiteDatabase db, Android.Content.ContentValues values);
[<Android.Runtime.Register("insert", "(Landroid/database/sqlite/SQLiteDatabase;Landroid/content/ContentValues;)J", "GetInsert_Landroid_database_sqlite_SQLiteDatabase_Landroid_content_ContentValues_Handler", ApiSince=30)>]
abstract member Insert : Android.Database.Sqlite.SQLiteDatabase * Android.Content.ContentValues -> int64
override this.Insert : Android.Database.Sqlite.SQLiteDatabase * Android.Content.ContentValues -> int64

Parameters

db
SQLiteDatabase

the database to insert on

values
ContentValues

Returns

the row ID of the newly inserted row, or -1 if an error occurred

Attributes

Remarks

Perform an insert by combining all current settings and the information passed into this method.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.insert(android.database.sqlite.SQLiteDatabase, android.content.ContentValues).

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