The requested page is not available for the requested platform. You are viewing the content for Default platform.

SchedulerControl.GetAppointmentsAsync(DateTimeOffset, DateTimeOffset) Method

Retrieves the collection of appointments that fall within the specified time interval.

Namespace: DevExpress.UI.Xaml.Scheduler

Assembly: DevExpress.UI.Xaml.Scheduler.v19.2.dll

Declaration

public Task<IEnumerable<AppointmentItem>> GetAppointmentsAsync(
    DateTimeOffset queryStart,
    DateTimeOffset queryEnd
)
Public Function GetAppointmentsAsync(
    queryStart As DateTimeOffset,
    queryEnd As DateTimeOffset
) As Task(Of IEnumerable(Of AppointmentItem))

Parameters

Name Type Description
queryStart DateTimeOffset

A System.DateTimeOffset value that specifies the start time of the required time interval.

queryEnd DateTimeOffset

A System.DateTimeOffset value that specifies the end time of the required time interval.

Returns

Type Description
Task<IEnumerable<AppointmentItem>>

A collection of appointments which belong to the specified time interval.

Remarks

The GetAppointmentsAsync method returns standard appointments and occurrences (appointments created based upon recurring pattern appointments), that belong to the specified time interval. If an appointment's time interval partially overlaps the specified interval, this appointment is also included in the collection returned.

See Also