HtmlComplianceIssue Constructor

Initialize a new instance of the HtmlComplianceIssue struct.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public HtmlComplianceIssue(
	HtmlComplianceViolation violation,
	long offset,
	int lineNumber,
	int linePosition
)

Parameters

violation  HtmlComplianceViolation
The specific HTML compliance violation that occurred.
offset  Int64
The character offset within the document where the violation was found.
lineNumber  Int32
The line number where the violation was found.
linePosition  Int32
The position within the line where the violation was found.

Remarks

Creates a new HtmlComplianceIssue.

Exceptions

ArgumentOutOfRangeException

violation is not a valid HtmlComplianceViolation.

-or-

offset is negative.

-or-

lineNumber is less than 1.

-or-

linePosition is less than 1.

See Also