Class CalendarVcalendar

Definition

Namespace:
Tizen.Pims.Calendar
Assembly:
Tizen.Pims.Calendar.dll
API Level:
4

A class for parsing and composing the vCalendar.

C#
Copy
public static class CalendarVcalendar
Inheritance
System.Object
CalendarVcalendar
Remarks

It's based on the vCalendar v2.0 specification.

Methods

View Source

Compose(CalendarList)

Retrieves a vCalendar stream from a calendar list.

Declaration
C#
Copy
public static string Compose(CalendarList list)
Parameters
Type Name Description
CalendarList list

The calendar list.

Returns
Type Description
System.String

The composed stream.

Exceptions
Type Condition
System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
View Source

Parse(String)

Retrieves all the calendars from a vCalendar stream.

Declaration
C#
Copy
public static CalendarList Parse(string stream)
Parameters
Type Name Description
System.String stream

The vCalendar stream.

Returns
Type Description
CalendarList

The record list.

Exceptions
Type Condition
System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
View Source

ParseForEach(String, ParseCallback)

Parses the vCalendar file with ForEach.

Declaration
C#
Copy
public static void ParseForEach(string path, ParseCallback callback)
Parameters
Type Name Description
System.String path

The file path of the vCalendar stream file.

ParseCallback callback

The callback function to invoke.

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.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4