Mime Compliance Position Kind Enumeration
An enumeration of the things that the position of a MIME compliance issue may refer to.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public enum MimeCompliancePositionKindRemarks
Not every violation can be pinned to a single byte. Some are a property of an entire header or body part rather than of one position within it, and others could only be narrowed down further by re-scanning input that the parser has already moved past.
Rather than pay that cost on every parse, MimeReader reports the position it already knows and records what that position refers to. A tool that renders diagnostics can then narrow the position down itself, but only for the issues it actually displays.
Members
| Exact | 0 | The position is that of the byte that triggered the violation. |
| LineStart | 1 | The position is the start of the line that the violation was found on. |
| ElementStart | 2 | The position is the start of the header or body part that the violation was found in. |