The following is a simple example of an iCalendar format:
BEGIN:VCALENDAR
Version:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20010101
DTEND:20010102
SUMMARY:First Party
END:VEVENT
BEGIN:VEVENT
DTSTART:20010104
DTEND:20010105
SUMMARY:Second Party
END:VEVENT
END:VCALENDAR
The VCALENDAR is the main component, which contains two VEVENT components.
The Components collection supports the following properties and methods:
Name | Description | |||
Add | Adds a Component object to the collection and returns a reference to the newly created object. | |||
Clear | Removes all objects in a collection. | |||
Count | Returns the number of components in the collection. | |||
Enumerate | Enumerates the components in the collection whose name matches the giving mask. | |||
Item | Returns a specific Component of the Components collection, giving its index or name. | |||
Remove | Removes a specific member from the Components collection, giving its index or name. |