Show / Hide Table of Contents

    Class CalendarVcalendar

    Definition

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

    A class for parsing and composing the vCalendar.

    public static class CalendarVcalendar
    Inheritance
    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
    public static string Compose(CalendarList list)
    Parameters
    Type Name Description
    CalendarList list

    The calendar list.

    Returns
    Type Description
    String

    The composed stream.

    Exceptions
    Type Condition
    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
    public static CalendarList Parse(string stream)
    Parameters
    Type Name Description
    String stream

    The vCalendar stream.

    Returns
    Type Description
    CalendarList

    The record list.

    Exceptions
    Type Condition
    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
    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.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when the method failed due to an invalid operation.

    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
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX