Skip to main content

AppointmentCollection.IsNewAppointment(Appointment) Method

Determines whether the appointment is already contained either in this AppointmentCollection or in one of the series of its recurring appointments.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public bool IsNewAppointment(
    Appointment apt
)

#Parameters

Name Type Description
apt Appointment

An Appointment object which is the appointment to search.

#Returns

Type Description
Boolean

true if the appointment is not contained in the collection and in its recurrent series; otherwise, false.

#Remarks

The IsNewAppointment method returns its value according to the following conditions.

Condition Return Value
The appointment is contained in this AppointmentCollection. 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