Method Permits
- Namespace
- MailFathom.Application.Rules.Actions
- Assembly
- MailFathom.Application.dll
Permits(MailboxMutation)
Reports whether a rule on this account may ask for one mutation.
public bool Permits(MailboxMutation mutation)
Parameters
mutationMailboxMutationThe mutation the rule declares.
Returns
Remarks
A closed enumeration's members are not compile-time constants, so the answer is reached by comparison rather than by a switch over cases. An unspecified mutation is permitted by nothing, which is what the final answer gives it.