VCalendarParserParseFromFile Method

This static method can be used to load property values into a new instance of a calendar from a file. The filename can be a disk file or a URL.

Definition

Namespace: EWSoftware.PDI.Parser
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static VCalendar ParseFromFile(
	string filename
)

Parameters

filename  String
A path or URL to a file containing or more calendar objects

Return Value

VCalendar
A new calendar as created from the file

Example

C#
VCalendar vCal1 = VCalendarParser.ParseFromFile(@"C:\MySchedule.ics");
VCalendar vCal2 = VCalendarParser.ParseFromFile(
    "http://www.mydomain.com/Calendars/MySchedule.ics");

See Also