DatabaseUtils.InsertHelper.Replace(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.
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.
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.