AppointmentCollection.AreIntersecting(Appointment, Appointment) Method
Checks if the two specified appointments intersect.
public static bool AreIntersecting( Appointment apt1, Appointment apt2 )
Public Shared Function AreIntersecting( apt1 As Appointment, apt2 As Appointment ) As Boolean
An Appointment object which is the first appointment whose time interval is to be checked.
An Appointment object which is the second appointment whose time interval is to be checked.
true, if the two appointments intersect; otherwise, false.
The two appointments are considered intersecting if the time intervals specified by the Appointment.Start and Appointment.End properties overlap. The boundaries of the time intervals are not included in the check.
If the two specified appointments are equal, then the return value is false.
If one of the specified appointments is a recurrence pattern (its Appointment.Type property value is AppointmentType.Pattern), then the second appointment is considered to intersect with the first appointment if it intersects with any recurring appointment in a series generated by this pattern.