The iCalendar type exposes the following members.
Constructors
Name | Description | |
---|---|---|
iCalendar |
To load an existing an iCalendar object, use one of the provided LoadFromXXX methods.
Examples
For example, use the following code to load an iCalendar object from a URL:
CopyC# IICalendar iCal = iCalendar.LoadFromUri(new Uri("http://somesite.com/calendar.ics")); |
Methods
Name | Description | |
---|---|---|
AddChild |
Adds an ICalendarObject-based object as a child
of the current object.
(Inherited from CalendarObject.) | |
AddProperty(CalendarProperty) |
Adds a property to this component.
(Inherited from CalendarComponent.) | |
AddProperty(String, String) |
Adds a property to this component.
(Inherited from CalendarComponent.) | |
AddTimeZone |
Adds a time zone to the iCalendar. This time zone may
then be used in date/time objects contained in the
calendar.
| |
ClearEvaluation |
Clears recurrence evaluations for recurring components.
| |
Copy<(Of <<'(T>)>>) |
Creates a copy of the object.
(Inherited from CalendarObjectBase.) | |
CopyFrom | (Inherited from CalendarComponent.) | |
Create<(Of <<'(T>)>>) |
Creates a typed object that is a direct child of the iCalendar itself. Generally,
you would invoke this method to create an Event, Todo, Journal, TimeZone, FreeBusy,
or other base component type.
| |
Dispose | Releases all resources used by the iCalendar | |
Equals | (Overrides CalendarObject..::..Equals(Object).) | |
Evaluate(IDateTime, IDateTime) | Obsolete.
Evaluates component recurrences for the given range of time.
Examples
For example, if you are displaying a month-view for January 2007,
you would want to evaluate recurrences for Jan. 1, 2007 to Jan. 31, 2007
to display relevant information for those dates.
| |
Evaluate<(Of <<'(T>)>>)(IDateTime, IDateTime) | Obsolete.
Evaluates component recurrences for the given range of time, for
the type of recurring component specified.
| |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode | (Inherited from CalendarObject.) | |
GetOccurrences(DateTime) | ||
GetOccurrences(IDateTime) |
Returns a list of occurrences of each recurring component
for the date provided (dt).
| |
GetOccurrences(DateTime, DateTime) | ||
GetOccurrences(IDateTime, IDateTime) |
Returns a list of occurrences of each recurring component
that occur between FromDate and ToDate.
| |
GetOccurrences<(Of <<'(T>)>>)(DateTime) | ||
GetOccurrences<(Of <<'(T>)>>)(IDateTime) |
Returns all occurrences of components of type T that start on the date provided.
All components starting between 12:00:00AM and 11:59:59 PM will be
returned.
Note
This will first Evaluate() the date range required in order to
determine the occurrences for the date provided, and then return
the occurrences.
| |
GetOccurrences<(Of <<'(T>)>>)(DateTime, DateTime) | ||
GetOccurrences<(Of <<'(T>)>>)(IDateTime, IDateTime) |
Returns all occurrences of components of type T that start within the date range provided.
All components occurring between startTime and endTime
will be returned.
| |
GetService(String) | (Inherited from CalendarObject.) | |
GetService(Type) | (Inherited from CalendarObject.) | |
GetService<(Of <<'(T>)>>)()()()() | (Inherited from CalendarObject.) | |
GetTimeZone | ||
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
LoadFromFile(String) |
Loads an iCalendar from the file system.
| |
LoadFromFile(String, Encoding) | ||
LoadFromFile(Type, String) | ||
LoadFromFile(String, Encoding, ISerializer) | ||
LoadFromFile(Type, String, Encoding) | ||
LoadFromFile<(Of <<'(T>)>>)(String) | ||
LoadFromFile<(Of <<'(T>)>>)(String, Encoding) | ||
LoadFromStream(Stream) |
Loads an iCalendar from an open stream.
| |
LoadFromStream(TextReader) | ||
LoadFromStream(Stream, Encoding) | ||
LoadFromStream(TextReader, ISerializer) | ||
LoadFromStream(Type, Stream) | ||
LoadFromStream(Type, TextReader) | ||
LoadFromStream(Stream, Encoding, ISerializer) | ||
LoadFromStream(Type, Stream, Encoding) | ||
LoadFromStream<(Of <<'(T>)>>)(Stream) | ||
LoadFromStream<(Of <<'(T>)>>)(TextReader) | ||
LoadFromStream<(Of <<'(T>)>>)(Stream, Encoding) | ||
LoadFromUri(Uri) |
Loads an iCalendar from a given Uri.
| |
LoadFromUri(Type, Uri) | ||
LoadFromUri(Uri, WebProxy) | ||
LoadFromUri(Type, Uri, WebProxy) | ||
LoadFromUri(Uri, String, String) | ||
LoadFromUri(Type, Uri, String, String) | ||
LoadFromUri(Uri, String, String, WebProxy) | ||
LoadFromUri(Type, Uri, String, String, WebProxy) | ||
LoadFromUri<(Of <<'(T>)>>)(Uri) | ||
LoadFromUri<(Of <<'(T>)>>)(Uri, WebProxy) | ||
LoadFromUri<(Of <<'(T>)>>)(Uri, String, String) | ||
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
MergeWith | ||
OnChildAdded | (Inherited from CalendarObject.) | |
OnChildRemoved | (Inherited from CalendarObject.) | |
OnDeserialized | (Inherited from CalendarObject.) | |
OnDeserializing | (Overrides CalendarComponent..::..OnDeserializing(StreamingContext).) | |
OnLoaded | (Inherited from CalendarObjectBase.) | |
RemoveChild |
Removed an ICalendarObject-based object from the Children
collection.
(Inherited from CalendarObject.) | |
RemoveService(String) | (Inherited from CalendarObject.) | |
RemoveService(Type) | (Inherited from CalendarObject.) | |
SetService(Object) | (Inherited from CalendarObject.) | |
SetService(String, Object) | (Inherited from CalendarObject.) | |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
Calendar |
Returns the iCalendar that this ICalendarObject
belongs to.
(Inherited from CalendarObject.) | |
Children |
A collection of ICalendarObjects that are children
of the current object.
(Inherited from CalendarObject.) | |
Column | (Inherited from CalendarObject.) | |
Events |
A collection of Event components in the iCalendar.
| |
FreeBusy |
A collection of IFreeBusy components in the iCalendar.
| |
iCalendar | (Inherited from CalendarObject.) | |
IsLoaded | (Inherited from CalendarObjectBase.) | |
Journals |
A collection of Journal components in the iCalendar.
| |
Key | (Inherited from CalendarObject.) | |
Line | (Inherited from CalendarObject.) | |
Method | ||
Name |
Gets or sets the name of the ICalendarObject. For iCalendar components,
this is the RFC 5545 name of the component.
(Inherited from CalendarObject.)Examples
| |
Parent |
Returns the parent ICalendarObject that owns this one.
(Inherited from CalendarObject.) | |
ProductID | ||
Properties |
Returns a list of properties that are associated with the iCalendar object.
(Inherited from CalendarComponent.) | |
RecurrenceEvaluationMode | ||
RecurrenceRestriction | ||
RecurringItems | ||
Scale | ||
TimeZones |
A collection of ITimeZone components in the iCalendar.
| |
Todos |
A collection of Todo components in the iCalendar.
| |
UniqueComponents | ||
Version |
Events
Name | Description | |
---|---|---|
ChildAdded | (Inherited from CalendarObject.) | |
ChildRemoved | (Inherited from CalendarObject.) | |
Loaded | (Inherited from CalendarObjectBase.) |