MockContentProvider.Update(Uri, ContentValues, String, String[]) 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.
Implement this to handle requests to update one or more rows.
[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);
[<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")>]
override this.Update : Android.Net.Uri * Android.Content.ContentValues * string * string[] -> int
Parameters
- uri
- Uri
The URI to query. This can potentially have a record ID if this is an update request for a specific record.
- values
- ContentValues
A set of column_name/value pairs to update in the database.
This must not be null
.
- selection
- String
An optional filter to match rows to update.
- selectionArgs
- String[]
Returns
- Attributes
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.