Method Refused
- Namespace
- MailFathom.Application.Mail.Delivery.Composition
- Assembly
- MailFathom.Application.dll
Refused(AuthoredEmailRefusal)
Reports that nothing was composed, and why.
public static AuthoredEmailComposition Refused(AuthoredEmailRefusal refusal)
Parameters
refusalAuthoredEmailRefusalWhat was wrong and where.
Returns
- AuthoredEmailComposition
A refused result.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.
Refused(AuthoredEmailRefusalReason, AuthoredEmailField, long?)
Reports that nothing was composed, from the parts a refusal is made of.
public static AuthoredEmailComposition Refused(AuthoredEmailRefusalReason reason, AuthoredEmailField field, long? bound = null)
Parameters
reasonAuthoredEmailRefusalReasonWhat was wrong.
fieldAuthoredEmailFieldThe part of the authored message it was wrong in.
boundlong?The number that was exceeded, when the reason is a bound.
Returns
- AuthoredEmailComposition
A refused result.