Method ToRole
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
ToRole(MailFolderSpecialUse)
Names whichever folder of the account plays that role.
public static MailFolderReference ToRole(MailFolderSpecialUse role)
Parameters
roleMailFolderSpecialUseThe role the folder plays.
Returns
- MailFolderReference
The reference.
Exceptions
- ArgumentOutOfRangeException
Thrown when
roleis not a defined role.