Skip to main content

AppointmentStorage.IsNewAppointment(Appointment) Method

Determines whether the appointment is already contained either in the appointment storage or in a series of its recurring appointments.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public bool IsNewAppointment(
    Appointment apt
)

#Parameters

Name Type Description
apt Appointment

true if the appointment is not contained in this storage or in its recurrent series; otherwise, false.

#Returns

Type Description
Boolean

A Appointment object which specifies the appointment to be checked.

#Remarks

The return value of the method is determined by the following conditions:

Condition Return Value
The appointment is contained in this AppointmentStorage. False
The appointment's type is AppointmentType.Occurrence. False
The appointment is recurring and is contained in the collection of its pattern's exceptions (returned via the Appointment.GetExceptions method). IsNewAppointment(apt.RecurrencePattern)
Otherwise True
See Also