| CalendarUtilityGetCalendar Method |
Gets a calendar from the provider.
Namespace:
Galactic.Calendar
Assembly:
Galactic.Calendar (in Galactic.Calendar.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public abstract Calendar GetCalendar(
string name,
DateTime startDate,
DateTime endDate
)
Public MustOverride Function GetCalendar (
name As String,
startDate As DateTime,
endDate As DateTime
) As Calendar
public:
virtual Calendar^ GetCalendar(
String^ name,
DateTime startDate,
DateTime endDate
) abstract
abstract 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 an name that is empty, null,
or full of whitespace is provided. |
See Also