| 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
)
Public Overrides Function GetCalendar (
name As String,
startDate As DateTime,
endDate As DateTime
) As Calendar
public:
virtual Calendar^ GetCalendar(
String^ name,
DateTime startDate,
DateTime endDate
) override
abstract GetCalendar :
name : string *
startDate : DateTime *
endDate : DateTime -> Calendar
override GetCalendar :
name : string *
startDate : DateTime *
endDate : DateTime -> Calendar
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:
CalendarThe calendar with the supplied name, or null if a calendar of that name does not exist
or could not be retrieved.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown 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