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
originContactOrigin?The origin to narrow to, or null for the whole book.
searchContactSearch?The text a contact must carry in its name or in one of its addresses, or null for no narrowing.
pageSizeint?How many contacts the page may hold, or null for DefaultPageSize.
cursorContactCursorThe boundary a continued walk reads beyond, or null for the first page.
Returns
- ContactQuery
The query the store reads under.
Exceptions
- ArgumentOutOfRangeException
Thrown when
pageSizeis below one or above MaximumPageSize, or whenoriginnames no declared value.