VCalendarParserParseFromStream Method

This static method can be used to load property values into a new instance of a calendar from a TextReader derived object such as a StreamReader or a StringReader.

Definition

Namespace: EWSoftware.PDI.Parser
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static VCalendar ParseFromStream(
	TextReader stream
)

Parameters

stream  TextReader
An IO stream from which to read the vCards. It is up to you to open the stream with the appropriate text encoding method if necessary.

Return Value

VCalendar
A new calendar as created from the IO stream

Example

C#
StreamReader sr = new StreamReader(@"C:\Test.ics");
VCalendar vCal1 = VCalendarParser.ParseFromStream(sr);
sr.Close();

See Also