Android.Database.Sqlite.SQLiteDatabase.Insert Method
Convenience method for inserting a row into the database.

Syntax

[Android.Runtime.Register("insert", "(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J", "GetInsert_Ljava_lang_String_Ljava_lang_String_Landroid_content_ContentValues_Handler")]
public virtual long Insert (string table, string nullColumnHack, Android.Content.ContentValues values)

Parameters

table
the table to insert the row into
nullColumnHack
optional; may be null. SQL doesn't allow inserting a completely empty row without naming at least one column name. If your provided values is empty, no column names are known and an empty row can't be inserted. If not set to null, the nullColumnHack parameter provides the name of nullable column name to explicitly insert a NULL into in the case where your values is empty.
values
this map contains the initial column values for the row. The keys should be the column names and the values the column values

Returns

Documentation for this section has not yet been entered.

Remarks

Convenience method for inserting a row into the database.

[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