DDay.iCal Version 0.71
Assembly: DDay.iCal (in DDay.iCal.dll) Version: 0.71.0.0 (0.71.0.0)
[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.iCalAssembly: 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#
This creates the event, and adds it to the Events list of the iCalendar.
iCalendar iCal = new iCalendar();
Event evt = iCal.Create<Event>();