Bagikan melalui


ICursor.Requery Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("requery", "()Z", "GetRequeryHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public bool Requery ();
[<Android.Runtime.Register("requery", "()Z", "GetRequeryHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member Requery : unit -> bool

Returns

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

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.

This member is deprecated. Don't use this. Just request a new cursor, so you can do this asynchronously and update your list view once the new cursor comes back.

Java documentation for android.database.Cursor.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