Method Resolve
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
Resolve(MailAccountId, MailFolderReference)
Resolves what a caller named into the folder of one account it refers to.
public MailFolderMapping? Resolve(MailAccountId accountId, MailFolderReference reference)
Parameters
accountIdMailAccountIdThe account the folder belongs to.
referenceMailFolderReferenceThe alias or role the caller named.
Returns
- MailFolderMapping
The mapping, or null when the reference names an alias configuration does not map.
Exceptions
- ArgumentException
Thrown when
referenceis the unspecified struct default.- MailFolderRoleUnmappedException
Thrown when the reference names a role no folder of the account plays.