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

Namespace:  C1.C1Schedule
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public AppointmentList GetOccurrences(
	BaseObject groupOwner,
	string groupBy,
	DateTime start,
	DateTime end,
	bool includePrivateAppointments
)
Visual Basic
Public Function GetOccurrences ( _
	groupOwner As BaseObject, _
	groupBy As String, _
	start As DateTime, _
	end As DateTime, _
	includePrivateAppointments As Boolean _
) As AppointmentList

Parameters

groupOwner
Type: C1.C1Schedule..::..BaseObject
The BaseObject object determining the appointment group.
groupBy
Type: System..::..String
The String value determining the type of grouping.
start
Type: System..::..DateTime
The DateTime value which specifies the start date and time of the interval.
end
Type: System..::..DateTime
The DateTime value which specifies the end date and time of the interval.
includePrivateAppointments
Type: System..::..Boolean
The Boolean value determining whether to include private appointments.

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