Język

MockCursor.CommitUpdates Method

Definition

Overloads

Name Description
CommitUpdates()

Throws UnsupportedOperationException. Override this method to commit cursor updates in a test.

CommitUpdates(IDictionary<Long,IDictionary<String,Object>>)

Throws UnsupportedOperationException. Override this method to commit cursor updates in a test.

CommitUpdates()

Throws UnsupportedOperationException. Override this method to commit cursor updates in a test.

[Android.Runtime.Register("commitUpdates", "()Z", "GetCommitUpdatesHandler")]
public virtual bool CommitUpdates();
[<Android.Runtime.Register("commitUpdates", "()Z", "GetCommitUpdatesHandler")>]
abstract member CommitUpdates : unit -> bool
override this.CommitUpdates : unit -> bool

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

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.

Applies to

CommitUpdates(IDictionary<Long,IDictionary<String,Object>>)

Throws UnsupportedOperationException. Override this method to commit cursor updates in a test.

[Android.Runtime.Register("commitUpdates", "(Ljava/util/Map;)Z", "GetCommitUpdates_Ljava_util_Map_Handler")]
public virtual bool CommitUpdates(System.Collections.Generic.IDictionary<Java.Lang.Long,System.Collections.Generic.IDictionary<string,Java.Lang.Object>>? values);
[<Android.Runtime.Register("commitUpdates", "(Ljava/util/Map;)Z", "GetCommitUpdates_Ljava_util_Map_Handler")>]
abstract member CommitUpdates : System.Collections.Generic.IDictionary<Java.Lang.Long, System.Collections.Generic.IDictionary<string, Java.Lang.Object>> -> bool
override this.CommitUpdates : System.Collections.Generic.IDictionary<Java.Lang.Long, System.Collections.Generic.IDictionary<string, Java.Lang.Object>> -> bool

Parameters

values
IDictionary<Long,IDictionary<String,Object>>

The map of row IDs to maps of column names and updated values. Available to a test override; the default mock implementation does not use this argument.

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

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.

Applies to