Method Create
- Namespace
- MailFathom.Application.Rules.Actions
- Assembly
- MailFathom.Application.dll
Create(IReadOnlyList<MailRuleAction>)
Builds the set of actions a rule applies, in the order they are applied.
public static MailRuleActionSet Create(IReadOnlyList<MailRuleAction> actions)
Parameters
actionsIReadOnlyList<MailRuleAction>The actions as they were declared, in any order.
Returns
- MailRuleActionSet
The set.
Exceptions
- ArgumentNullException
Thrown when
actionsis null, or one of them is.- ArgumentException
Thrown when the actions name a combination MailFathom refuses, which validation reports first.