Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FetchDataEventArgs.AsyncResult Property

Gets or sets a task that allows you to fetch data asynchronously in the SchedulerControl.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public Task<object[]> AsyncResult { get; set; }

#Property Value

Type Description
Task<Object[]>

A task that allows you to fetch data asynchronously.

#Remarks

The AsyncResult property is similar to the Result property, but allows you to fetch data asynchronously.

The code sample below illustrates how to use the asynchronous data fetch.

public void FetchAppointments(FetchDataEventArgs args) {
    args.AsyncResult = dbContext
        .AppointmentEntities
        .Where(args.GetFetchExpression<AppointmentEntity>())
        .ToArrayAsync<object>();
}
See Also