Android.Test.Mock.MockContentProvider.Update Method
Implement this to handle requests to update one or more rows.

Syntax

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

Parameters

uri
The URI to query. This can potentially have a record ID if this is an update request for a specific record.
values
A set of column_name/value pairs to update in the database. This must not be null.
selection
An optional filter to match rows to update.
selectionArgs
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Implement this to handle requests to update one or more rows. The implementation should update all rows matching the selection to set the columns according to the provided values map. As a courtesy, call Android.Content.ContentResolver.NotifyChange(Android.Net.Uri, Android.Database.ContentObserver) after updating. This method can be called from multiple threads, as described in Processes and Threads.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8