Table of Contents

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

mutation MailboxMutation

The mutation the rule declares.

Returns

bool

true when the account permits it.

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.