VCalendar ParserParse From Stream 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: 2025.1.9.0
A new calendar as created from the IO stream
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static VCalendar? ParseFromStream(
TextReader stream
)VB
Public Shared Function ParseFromStream (
stream As TextReader
) As VCalendarC++
public:
static VCalendar^ ParseFromStream(
TextReader^ stream
)F#
static member ParseFromStream :
stream : TextReader -> VCalendar 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
VCalendarA new calendar as created from the IO stream
Example
C#
StreamReader sr = new StreamReader(@"C:\Test.ics");
VCalendar vCal1 = VCalendarParser.ParseFromStream(sr);
sr.Close();VB
Dim sr As New StreamReader("C:\Test.ics")
Dim vCal1 As VCalendar = VCalendarParser.ParseFromStream(sr)
sr.Close()C++
No code example is currently available or this language may not be supported.F#
No code example is currently available or this language may not be supported.