Dil

AbstractCursor.Requery Method

Definition

Performs the query that created the cursor again, refreshing its contents.

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

Returns

true if the requery succeeded, false if not, in which case the cursor becomes invalid.

Implements

Attributes

Remarks

Performs the query that created the cursor again, refreshing its contents. This may be done at any time, including after a call to deactivate(). Since this method could execute a query on the database and potentially take a while, it could cause ANR if it is called on Main (UI) thread. A warning is printed if this method is being executed on Main thread.

Android reference for android.database.AbstractCursor.requery.

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