Table of Contents

Method Create

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

Create(DateTimeOffset, DateTimeOffset, CalendarEventOrigin?, int?)

Builds a validated window from what a caller asked for.

public static CalendarEventQuery Create(DateTimeOffset from, DateTimeOffset until, CalendarEventOrigin? origin, int? count)

Parameters

from DateTimeOffset

The instant the window opens.

until DateTimeOffset

The instant it closes, which is after from.

origin CalendarEventOrigin?

The origin to narrow to, or null for both.

count int?

How many events it may answer with, or null for DefaultCount.

Returns

CalendarEventQuery

The window the store reads under.

Exceptions

ArgumentOutOfRangeException

Thrown when until is not after from, when count is below one or above MaximumCount, or when origin names no declared value.