DDay.iCal Version 0.71

[This is preliminary documentation and is subject to change.]

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.

Namespace:  DDay.iCal
Assembly:  DDay.iCal (in DDay.iCal.dll) Version: 0.71.0.0 (0.71.0.0)

Syntax

C#
public T Create<T>()
where T : iCalObject

Type Parameters

T
The type of object to create

Return Value

An object of the type specified

Examples

To create an event, use the following:
CopyC#
iCalendar iCal = new iCalendar();

Event evt = iCal.Create<Event>();
This creates the event, and adds it to the Events list of the iCalendar.

See Also