Class CalendarReader
Reads iCalendar data (RFC 5545) from a stream.
Implements
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class CalendarReader : IDisposable
Constructors
View SourceCalendarReader(Stream)
Initializes a new instance of the CalendarReader class.
Declaration
public CalendarReader(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream used to read or write the data. |
CalendarReader(Stream, bool)
Initializes a new instance of the CalendarReader class.
Declaration
public CalendarReader(Stream stream, bool leaveOpen)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream used to read or write the data. |
| bool | leaveOpen | The leave open used by the operation. |
Methods
View SourceDispose()
Processes the dispose data.
Declaration
public void Dispose()
Read()
Reads the first calendar from the stream. Returns null if no calendar is found.
Declaration
public Calendar? Read()
Returns
| Type | Description |
|---|---|
| Calendar |
ReadAll()
Reads all calendars from the stream.
Declaration
public IReadOnlyList<Calendar> ReadAll()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<Calendar> |