MimeComplianceIssue(MimeComplianceContext, MimeComplianceViolation, Int64, Int32, Int32, MimeCompliancePositionKind) Constructor

Initialize a new instance of the MimeComplianceIssue struct.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimeComplianceIssue(
	MimeComplianceContext context,
	MimeComplianceViolation violation,
	long streamOffset,
	int lineNumber,
	int columnNumber,
	MimeCompliancePositionKind positionKind
)

Parameters

context  MimeComplianceContext
The context that the message is being used in.
violation  MimeComplianceViolation
The specific MIME compliance violation that occurred.
streamOffset  Int64
The offset within the stream where the violation was found.
lineNumber  Int32
The one-based line number where the violation was found.
columnNumber  Int32
The one-based column number where the violation was found, or 0 if unknown.
positionKind  MimeCompliancePositionKind
What the position refers to.

Remarks

Creates a new MimeComplianceIssue that will be rated for the specified context.

Exceptions

ArgumentOutOfRangeException

context is not a valid MimeComplianceContext.

-or-

violation is not a valid MimeComplianceViolation.

-or-

positionKind is not a valid MimeCompliancePositionKind.

See Also