Method NarrowedToEmails
- Namespace
- MailFathom.Application.Emails.Mailboxes
- Assembly
- MailFathom.Application.dll
NarrowedToEmails(IReadOnlyList<StoredEmailId>)
Restricts the scope to individual emails, on top of everything already narrowing it.
public MailboxScope NarrowedToEmails(IReadOnlyList<StoredEmailId> selectedEmails)
Parameters
selectedEmailsIReadOnlyList<StoredEmailId>The emails the question was asked about, at most MaximumSelectedEmails of them.
Returns
- MailboxScope
The same scope restricted to those emails, deduplicated and ordered.
Remarks
The bound counts what the caller wrote rather than the distinct identifiers left afterwards, so a request cannot buy a larger predicate by repeating one. Ordering and deduplication are what make two requests naming the same selection in a different order one query with one cursor, exactly as the two lists above are ordered.
Exceptions
- MailboxQueryFilterInvalidException
More emails were named than MaximumSelectedEmails admits.