Method Create
- Namespace
- MailFathom.Application.Emails.Mailboxes
- Assembly
- MailFathom.Application.dll
Create(IEnumerable<MailAccountId>?, IEnumerable<MailFolderAlias>?)
Creates a normalized scope from what a request named.
public static MailboxScope Create(IEnumerable<MailAccountId>? accountIds, IEnumerable<MailFolderAlias>? folderAliases)
Parameters
accountIdsIEnumerable<MailAccountId>The accounts to restrict to, or null to name none.
folderAliasesIEnumerable<MailFolderAlias>The folder aliases to restrict to, or null to name none.
Returns
- MailboxScope
The scope, with both lists deduplicated and ordered.
Exceptions
- MailboxQueryFilterInvalidException
Thrown when either list names more values than its limit permits.