CalendarContract.EventDays.Query 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.
Retrieves the days with events for the Julian days starting at "startDay" for "numDays".
[Android.Runtime.Register("query", "(Landroid/content/ContentResolver;II[Ljava/lang/String;)Landroid/database/Cursor;", "")]
public static Android.Database.ICursor? Query (Android.Content.ContentResolver? cr, int startDay, int numDays, string[]? projection);
[<Android.Runtime.Register("query", "(Landroid/content/ContentResolver;II[Ljava/lang/String;)Landroid/database/Cursor;", "")>]
static member Query : Android.Content.ContentResolver * int * int * string[] -> Android.Database.ICursor
Parameters
the ContentResolver
- startDay
- Int32
the first Julian day in the range
- numDays
- Int32
the number of days to load (must be at least 1)
- projection
- String[]
the columns to return in the cursor
Returns
a database cursor containing a list of start and end days for events
- Attributes
Remarks
Retrieves the days with events for the Julian days starting at "startDay" for "numDays". It returns a cursor containing startday and endday representing the max range of days for all events beginning on each startday.This is a blocking function and should not be done on the UI thread.
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.