Table of Contents

Method Read

Namespace
MailFathom.Application.Calendar.Import
Assembly
MailFathom.Application.dll

Read(Stream, TimeZoneInfo)

Reads what a file offers, resolving every instant it names.

CalendarFileReading Read(Stream file, TimeZoneInfo zoneForUnzonedTimes)

Parameters

file Stream

The octets the person chose, which the caller has already bounded.

zoneForUnzonedTimes TimeZoneInfo

The zone an entry stating neither a zone nor a UTC instant is read in, and the one an all-day entry's day opens in.

Returns

CalendarFileReading

The entries that could become events and one reason per entry that could not, or why the whole file was refused.

Remarks

A floating time is one the file states with no zone at all, which RFC 5545 defines as the local time of whoever reads it — so it is the reader that has to be told which local that is, rather than the file. An all-day entry is the same question asked about a date: the day it names opens at a different instant in every zone, and midnight in whichever zone the server happens to run in is the one answer that is certainly wrong.

Exceptions

ArgumentNullException

Thrown when any argument is null.