SQLiteQueryBuilder.Insert(SQLiteDatabase, ContentValues) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.