Click or drag to resize
Galactic API

iCalendarUtilityGetCalendar Method

Gets a calendar from the provider.

Namespace:  Galactic.Calendar.iCalendar
Assembly:  Galactic.Calendar.iCalendar (in Galactic.Calendar.iCalendar.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public override Calendar GetCalendar(
	string name,
	DateTime startDate,
	DateTime endDate
)

Parameters

name
Type: SystemString
The name of the calendar to retrieve.
startDate
Type: SystemDateTime
Events starting on or after this date will be included in the list returned.
endDate
Type: SystemDateTime
Events starting on or before this date will be included in the list returned.

Return Value

Type: Calendar
The calendar with the supplied name, or null if a calendar of that name does not exist or could not be retrieved.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if a name that is empty, null, or full of whitespace is provided.
Remarks
This method only returns the first calendar in iCalendar files that contain multiple calendars.
See Also