DatabaseUtils.InsertHelper.Replace(ContentValues) Method

Definition

Caution

deprecated

Performs an insert, adding a new row with the given values.

[Android.Runtime.Register("replace", "(Landroid/content/ContentValues;)J", "GetReplace_Landroid_content_ContentValues_Handler")]
[System.Obsolete("deprecated")]
public virtual long Replace (Android.Content.ContentValues values);
[<Android.Runtime.Register("replace", "(Landroid/content/ContentValues;)J", "GetReplace_Landroid_content_ContentValues_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member Replace : Android.Content.ContentValues -> int64
override this.Replace : Android.Content.ContentValues -> int64

Parameters

values
ContentValues

the set of values with which to populate the new row

Returns

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

Attributes

Remarks

Performs an insert, adding a new row with the given values. If the table contains conflicting rows, they are deleted and replaced with the new row.

Java documentation for android.database.DatabaseUtils.InsertHelper.replace(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