Mime Compliance IssueGet Severity(Mime Compliance Violation) Method
Get the severity of a MIME compliance violation.
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
)Parameters
- violation MimeComplianceViolation
- The MIME compliance violation.
Return Value
MimeComplianceSeverityThe severity.
Remarks
Gets how much practical harm the violation is likely to cause, assuming the message is being transmitted over the network.
Use GetSeverity(MimeComplianceViolation, MimeComplianceContext) instead if the message was read from a local message store, where a few violations are routine and harmless.
Exceptions
| ArgumentOutOfRangeException | violation is not a valid MimeComplianceViolation. |