Class CalendarVcalendar
Definition
- Assembly:
- Tizen.Pims.Calendar.dll
A class for parsing and composing the vCalendar.
public static class CalendarVcalendar
- Inheritance
-
objectCalendarVcalendar
Remarks
It's based on the vCalendar v2.0 specification.
Methods
View SourceCompose(CalendarList)
Retrieves a vCalendar stream from a calendar list.
Declaration
public static string Compose(CalendarList list)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarList | list | The calendar list. |
Returns
| Type | Description |
|---|---|
| string | The composed stream. |
Remarks
It's based on the vCalendar v2.0 specification.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when one of the arguments provided to a method is not valid. |
| System.OutOfMemoryException | Thrown when failed due to out of memory. |
Parse(string)
Retrieves all the calendars from a vCalendar stream.
Declaration
public static CalendarList Parse(string stream)
Parameters
| Type | Name | Description |
|---|---|---|
| string | stream | The vCalendar stream. |
Returns
| Type | Description |
|---|---|
| CalendarList | The record list. |
Remarks
It's based on the vCalendar v2.0 specification.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when one of the arguments provided to a method is not valid. |
| System.OutOfMemoryException | Thrown when failed due to out of memory. |
ParseForEach(string, ParseCallback)
Parses the vCalendar file with ForEach.
Declaration
public static void ParseForEach(string path, ParseCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The file path of the vCalendar stream file. |
| ParseCallback | callback | The callback function to invoke. |
Remarks
It's based on the vCalendar v2.0 specification.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when the method failed due to an invalid operation. |
| System.ArgumentException | Thrown when one of the arguments provided to a method is not valid. |
| System.OutOfMemoryException | Thrown when failed due to out of memory. |