Android.Content.ContentResolver.Update Method
Update row(s) in a content URI.

Syntax

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

Parameters

uri
The URI to modify.
values
The new field values. The key is the column name for the field. A null value will remove an existing field value.
where
A filter to apply to rows before updating, formatted as an SQL WHERE clause (excluding the WHERE itself).
selectionArgs
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif uri or values are null

Remarks

Update row(s) in a content URI. If the content provider supports transactions the update will be atomic.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1