Method ApplicationOrderOf
- Namespace
- MailFathom.Application.Rules.Actions
- Assembly
- MailFathom.Application.dll
ApplicationOrderOf(MailRuleAction)
Ranks one action within the fixed order every permitted combination is applied in.
public static int ApplicationOrderOf(MailRuleAction action)
Parameters
actionMailRuleActionThe action to rank.
Returns
- int
Its position in the order, lowest first.
Remarks
The flag first and the relocation or the delete last, so every permitted combination acts on the occurrence the condition matched. It is published because the same order governs the actions of two rules matching one email, which no single rule's set can order on its own. A closed enumeration's members are not compile-time constants, so the rank is decided by comparison rather than by a switch over cases.
Exceptions
- ArgumentNullException
Thrown when
actionis null.