ContentResolver.Update(Uri, ContentValues, String, String[]) ContentResolver.Update(Uri, ContentValues, String, String[]) Method

Definition

Update row(s) in a content URI.

[Android.Runtime.Register("update", "(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I", "")]
public int Update (Android.Net.Uri uri, Android.Content.ContentValues values, string where, string[] selectionArgs);
member this.Update : Android.Net.Uri * Android.Content.ContentValues * string * string[] -> int

Parameters

uri
Uri Uri

The URI to modify.

values
ContentValues ContentValues

The new field values. The key is the column name for the field. A null value will remove an existing field value.

where
String String

A filter to apply to rows before updating, formatted as an SQL WHERE clause (excluding the WHERE itself).

selectionArgs
String[]

Returns

Exceptions

if uri or values are null

Remarks

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