Mime Compliance IssueGet Severity(Mime Compliance Violation, Mime Compliance Context) Method
Get the severity of a MIME compliance violation in a particular context.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The severity.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static MimeComplianceSeverity GetSeverity(
MimeComplianceViolation violation,
MimeComplianceContext context
)Parameters
- violation MimeComplianceViolation
- The MIME compliance violation.
- context MimeComplianceContext
- The context that the message is being used in.
Return Value
MimeComplianceSeverityThe severity.
Remarks
Gets how much practical harm the violation is likely to cause when the message is used in the specified context.
A handful of violations are requirements of the channel that a message travels over rather than of the message itself, and are therefore rated lower in Storage than in Transport. See MimeComplianceContext for the complete list. Every other violation is rated the same in both contexts.
Exceptions
| ArgumentOutOfRangeException |
violation is not a valid MimeComplianceViolation. -or- context is not a valid MimeComplianceContext. |