SchedulerAppointmentChangingEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Proposes an appointment creation, move or resize before the server commits it.
- C#
- VB.NET
public class SchedulerAppointmentChangingEventArgs : CancelEventArgs
Public Class SchedulerAppointmentChangingEventArgs
Inherits CancelEventArgs
Derives from or implements CancelEventArgs.
Use Appointment, OccurrenceStart, Start to access the event data.
Example:
scheduler.AppointmentCreating += (s, e) => e.Cancel = e.Start < DateTime.Today;
Constructors
SchedulerAppointmentChangingEventArgs(appointment, occurrenceStart, start, end, resourceId)
Initializes event data.
| Name | Type | Description |
|---|---|---|
| appointment | SchedulerAppointment | The appointment passed to the operation. |
| occurrenceStart | DateTime | The occurrence start passed to the operation. |
| start | DateTime | The start passed to the operation. |
| end | DateTime | The end passed to the operation. |
| resourceId | String | The resource id passed to the operation. |
Properties
Appointment
SchedulerAppointment: The source appointment, or the new appointment for a creation. Set its Text in a creation handler.
End
DateTime: Proposed exclusive end.
OccurrenceStart
DateTime: The original occurrence start; equal to Start for a new appointment.
ResourceId
String: Proposed resource identity.
Start
DateTime: Proposed inclusive start.