Skip to main content

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

ISchedulerAppointmentActions.CreateAppointmentAsync(DateTime, DateTime, Boolean, Object) Method

Creates a new appointment for the Scheduler, but does not save it to a data source.’

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
Task<DxSchedulerAppointmentItem> CreateAppointmentAsync(
    DateTime start,
    DateTime end,
    bool allDay,
    object resourceId
)

#Parameters

Name Type Description
start DateTime

Specifies the appointment’s start date.

end DateTime

Specifies the appointment’s end date.

allDay Boolean

Specifies whether the appointment is scheduled for the entire day or several days.

resourceId Object

Specifies the identifier of the resource object associated with the appointment.

#Returns

Type Description
Task<DxSchedulerAppointmentItem>

An asynchronous operation that returns the created appointment. Returns null if the appointment can not be created.

#Remarks

Refer to the DxScheduler.CreateAppointmentAsync description for more information and an example.

See Also