SQLiteDatabase.UpdateWithOnConflict 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.
Convenience method for updating rows in the database.
[Android.Runtime.Register("updateWithOnConflict", "(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;I)I", "GetUpdateWithOnConflict_Ljava_lang_String_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_IHandler")]
public virtual int UpdateWithOnConflict (string? table, Android.Content.ContentValues? values, string? whereClause, string[]? whereArgs, Android.Database.Sqlite.Conflict conflictAlgorithm);
[<Android.Runtime.Register("updateWithOnConflict", "(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;I)I", "GetUpdateWithOnConflict_Ljava_lang_String_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_IHandler")>]
abstract member UpdateWithOnConflict : string * Android.Content.ContentValues * string * string[] * Android.Database.Sqlite.Conflict -> int
override this.UpdateWithOnConflict : string * Android.Content.ContentValues * string * string[] * Android.Database.Sqlite.Conflict -> int
Parameters
- table
- String
the table to update in
- values
- ContentValues
a map from column names to new column values. null is a valid value that will be translated to NULL.
- whereClause
- String
the optional WHERE clause to apply when updating. Passing null will update all rows.
- whereArgs
- String[]
You may include ?s in the where clause, which will be replaced by the values from whereArgs. The values will be bound as Strings.
- conflictAlgorithm
- Conflict
for update conflict resolver
Returns
the number of rows affected
- Attributes
Remarks
Convenience method for updating rows in the database.
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.