Skip to main content

Appointment(AppointmentType) Constructor

Initializes a new instance of the Appointment class of the specified type.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public Appointment(
    AppointmentType type
)

#Parameters

Name Type Description
type AppointmentType

An AppointmentType enumeration value that specifies the type of the appointment. This value is assigned to the Appointment.Type property.

#Remarks

In this case, the Appointment.Start property is set to DateTime.MinValue, the Appointment.Duration property is set to 30 minutes, and the Appointment.Subject is set to Empty.

NOTE

Don't specify the AppointmentType.Occurrence, AppointmentType.ChangedOccurrence, or AppointmentType.DeletedOccurrence as the type of the appointment being created. As in these cases, Appointment.CreateException should be used instead to create an exception for the recurring series.

See Also