[]
        
(Showing Draft Content)

C1.Schedule.AppointmentCollection.GetOccurrences

GetOccurrences Method

GetOccurrences(DateTime, DateTime)

Retrieves the AppointmentList object which contains the full list of Appointment objects in the specified time interval.

Declaration
public AppointmentList GetOccurrences(DateTime start, DateTime end)
Parameters
Type Name Description
DateTime start

The DateTime value which specifies the start date and time of the interval.

DateTime end

The DateTime value which specifies the end date and time of the interval.

Returns
Type Description
AppointmentList

The AppointmentList object.

Remarks

This method will create instances of the Appointment object for recurring appointments if they haven't been created yet.

GetOccurrences(BaseObject, string, DateTime, DateTime, bool)

Retrieves the AppointmentList object which contains the full list of Appointment objects in the specified time interval.

Declaration
public AppointmentList GetOccurrences(BaseObject groupOwner, string groupBy, DateTime start, DateTime end, bool includePrivateAppointments)
Parameters
Type Name Description
BaseObject groupOwner

The BaseObject object determining the appointment group.

string groupBy

The string value determining the type of grouping.

DateTime start

The DateTime value which specifies the start date and time of the interval.

DateTime end

The DateTime value which specifies the end date and time of the interval.

bool includePrivateAppointments

The bool value determining whether to include private appointments.

Returns
Type Description
AppointmentList

The AppointmentList object.

Remarks

This method will create instances of the Appointment object for recurring appointments if they haven't been created yet.

GetOccurrences(Appointment, DateTime, DateTime)

Retrieves the AppointmentList object which contains the list of occurrences of the specified master appointment in the specified time interval.

Declaration
public AppointmentList GetOccurrences(Appointment appointment, DateTime start, DateTime end)
Parameters
Type Name Description
Appointment appointment

The Appointment object representing the master appointment.

DateTime start

The DateTime value which specifies the start date and time of the interval.

DateTime end

The DateTime value which specifies the end date and time of the interval.

Returns
Type Description
AppointmentList

The AppointmentList object.

Remarks

This method will create instances of the Appointment object for recurring appointments if they haven't been created yet.