Table of Contents

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

action MailRuleAction

The 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 action is null.