The iCalendar type exposes the following members.

Constructors

  NameDescription
Public methodiCalendar
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

  NameDescription
Public methodAddChild
Adds an ICalendarObject-based object as a child of the current object.
(Inherited from CalendarObject.)
Public methodAddProperty(CalendarProperty)
Adds a property to this component.
(Inherited from CalendarComponent.)
Public methodAddProperty(String, String)
Adds a property to this component.
(Inherited from CalendarComponent.)
Public methodAddTimeZone
Adds a time zone to the iCalendar. This time zone may then be used in date/time objects contained in the calendar.
Public methodClearEvaluation
Clears recurrence evaluations for recurring components.
Public methodCopy<(Of <<'(T>)>>)
Creates a copy of the object.
(Inherited from CalendarObjectBase.)
Public methodCopyFrom (Inherited from CalendarComponent.)
Public methodCreate<(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.
Public methodDispose
Releases all resources used by the iCalendar
Public methodEquals (Overrides CalendarObject..::..Equals(Object).)
Public methodEvaluate(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.
Public methodEvaluate<(Of <<'(T>)>>)(IDateTime, IDateTime) Obsolete.
Evaluates component recurrences for the given range of time, for the type of recurring component specified.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Inherited from CalendarObject.)
Public methodGetOccurrences(DateTime)
Public methodGetOccurrences(IDateTime)
Returns a list of occurrences of each recurring component for the date provided (dt).
Public methodGetOccurrences(DateTime, DateTime)
Public methodGetOccurrences(IDateTime, IDateTime)
Returns a list of occurrences of each recurring component that occur between FromDate and ToDate.
Public methodGetOccurrences<(Of <<'(T>)>>)(DateTime)
Public methodGetOccurrences<(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 Note This will first Evaluate() the date range required in order to determine the occurrences for the date provided, and then return the occurrences.
Public methodGetOccurrences<(Of <<'(T>)>>)(DateTime, DateTime)
Public methodGetOccurrences<(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.
Public methodGetService(String) (Inherited from CalendarObject.)
Public methodGetService(Type) (Inherited from CalendarObject.)
Public methodGetService<(Of <<'(T>)>>)()()()() (Inherited from CalendarObject.)
Public methodGetTimeZone
Retrieves the ITimeZone object for the specified TZID (Time Zone Identifier).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoadFromFile(String)
Loads an iCalendar from the file system.
Public methodStatic memberLoadFromFile(String, Encoding)
Public methodStatic memberLoadFromFile(Type, String)
Public methodStatic memberLoadFromFile(String, Encoding, ISerializer)
Public methodStatic memberLoadFromFile(Type, String, Encoding)
Public methodStatic memberLoadFromFile<(Of <<'(T>)>>)(String)
Public methodStatic memberLoadFromFile<(Of <<'(T>)>>)(String, Encoding)
Public methodStatic memberLoadFromStream(Stream)
Loads an iCalendar from an open stream.
Public methodStatic memberLoadFromStream(TextReader)
Public methodStatic memberLoadFromStream(Stream, Encoding)
Public methodStatic memberLoadFromStream(TextReader, ISerializer)
Public methodStatic memberLoadFromStream(Type, Stream)
Public methodStatic memberLoadFromStream(Type, TextReader)
Public methodStatic memberLoadFromStream(Stream, Encoding, ISerializer)
Public methodStatic memberLoadFromStream(Type, Stream, Encoding)
Public methodStatic memberLoadFromStream<(Of <<'(T>)>>)(Stream)
Public methodStatic memberLoadFromStream<(Of <<'(T>)>>)(TextReader)
Public methodStatic memberLoadFromStream<(Of <<'(T>)>>)(Stream, Encoding)
Public methodStatic memberLoadFromUri(Uri)
Loads an iCalendar from a given Uri.
Public methodStatic memberLoadFromUri(Type, Uri)
Public methodStatic memberLoadFromUri(Uri, WebProxy)
Public methodStatic memberLoadFromUri(Type, Uri, WebProxy)
Public methodStatic memberLoadFromUri(Uri, String, String)
Loads an iCalendar from a given Uri, using a specified username and password for credentials.
Public methodStatic memberLoadFromUri(Type, Uri, String, String)
Public methodStatic memberLoadFromUri(Uri, String, String, WebProxy)
Public methodStatic memberLoadFromUri(Type, Uri, String, String, WebProxy)
Public methodStatic memberLoadFromUri<(Of <<'(T>)>>)(Uri)
Public methodStatic memberLoadFromUri<(Of <<'(T>)>>)(Uri, WebProxy)
Public methodStatic memberLoadFromUri<(Of <<'(T>)>>)(Uri, String, String)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMergeWith
Protected methodOnChildAdded (Inherited from CalendarObject.)
Protected methodOnChildRemoved (Inherited from CalendarObject.)
Protected methodOnDeserialized (Inherited from CalendarObject.)
Protected methodOnDeserializing (Overrides CalendarComponent..::..OnDeserializing(StreamingContext).)
Public methodOnLoaded (Inherited from CalendarObjectBase.)
Public methodRemoveChild
Removed an ICalendarObject-based object from the Children collection.
(Inherited from CalendarObject.)
Public methodRemoveService(String) (Inherited from CalendarObject.)
Public methodRemoveService(Type) (Inherited from CalendarObject.)
Public methodSetService(Object) (Inherited from CalendarObject.)
Public methodSetService(String, Object) (Inherited from CalendarObject.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCalendar
Returns the iCalendar that this ICalendarObject belongs to.
(Inherited from CalendarObject.)
Public propertyChildren
A collection of ICalendarObjects that are children of the current object.
(Inherited from CalendarObject.)
Public propertyColumn (Inherited from CalendarObject.)
Public propertyEvents
A collection of Event components in the iCalendar.
Public propertyFreeBusy
A collection of IFreeBusy components in the iCalendar.
Public propertyiCalendar (Inherited from CalendarObject.)
Public propertyIsLoaded (Inherited from CalendarObjectBase.)
Public propertyJournals
A collection of Journal components in the iCalendar.
Public propertyKey (Inherited from CalendarObject.)
Public propertyLine (Inherited from CalendarObject.)
Public propertyMethod
Public propertyName
Gets or sets the name of the ICalendarObject. For iCalendar components, this is the RFC 5545 name of the component.

Examples

  • Event - "VEVENT"
  • Todo - "VTODO"
  • TimeZone - "VTIMEZONE"
  • etc.
(Inherited from CalendarObject.)
Public propertyParent
Returns the parent ICalendarObject that owns this one.
(Inherited from CalendarObject.)
Public propertyProductID
Public propertyProperties
Returns a list of properties that are associated with the iCalendar object.
(Inherited from CalendarComponent.)
Public propertyRecurrenceEvaluationMode
Public propertyRecurrenceRestriction
Public propertyRecurringItems
Public propertyScale
Public propertyTimeZones
A collection of ITimeZone components in the iCalendar.
Public propertyTodos
A collection of Todo components in the iCalendar.
Public propertyUniqueComponents
Public propertyVersion

Events

  NameDescription
Public eventChildAdded (Inherited from CalendarObject.)
Public eventChildRemoved (Inherited from CalendarObject.)
Public eventLoaded (Inherited from CalendarObjectBase.)

See Also