Method IsInTrash
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
IsInTrash(LocalMailFolderId)
Gets whether a folder is the trash or sits anywhere beneath it, which is what makes deleting it an erasure.
public bool IsInTrash(LocalMailFolderId id)
Parameters
idLocalMailFolderIdThe folder.
Returns
- bool
Whether the folder is in the trash.
Exceptions
- InvalidOperationException
Thrown when the tree lacks the trash, which MissingProtectedFolders(Func<LocalMailFolderId>) supplies.