ComponentOne Scheduler for WinForms
GetOccurrences(Appointment,DateTime,DateTime) Method

C1.Win.C1Schedule.4 Assembly > C1.C1Schedule Namespace > AppointmentCollection Class > GetOccurrences Method : GetOccurrences(Appointment,DateTime,DateTime) Method
The Appointment object representing the master appointment.
The System.DateTime value which specifies the start date and time of the interval.
The System.DateTime value which specifies the end date and time of the interval.
Retrieves the AppointmentList object which contains the list of occurrences of the specified master appointment in the specified time interval.
Syntax
'Declaration
 
Public Overloads Function GetOccurrences( _
   ByVal appointment As Appointment, _
   ByVal start As System.Date, _
   ByVal end As System.Date _
) As AppointmentList
public AppointmentList GetOccurrences( 
   Appointment appointment,
   System.DateTime start,
   System.DateTime end
)

Parameters

appointment
The Appointment object representing the master appointment.
start
The System.DateTime value which specifies the start date and time of the interval.
end
The System.DateTime value which specifies the end date and time of the interval.

Return Value

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

Reference

AppointmentCollection Class
AppointmentCollection Members
Overload List