Table of Contents

Method Create

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

Create(ContactOrigin?, ContactSearch?, int?, ContactCursor?)

Builds a validated query from what a caller asked for.

public static ContactQuery Create(ContactOrigin? origin, ContactSearch? search, int? pageSize, ContactCursor? cursor)

Parameters

origin ContactOrigin?

The origin to narrow to, or null for the whole book.

search ContactSearch?

The text a contact must carry in its name or in one of its addresses, or null for no narrowing.

pageSize int?

How many contacts the page may hold, or null for DefaultPageSize.

cursor ContactCursor

The boundary a continued walk reads beyond, or null for the first page.

Returns

ContactQuery

The query the store reads under.

Exceptions

ArgumentOutOfRangeException

Thrown when pageSize is below one or above MaximumPageSize, or when origin names no declared value.