DocumentPolicyViolationReportBody Class

The body of the reports of type document-policy-violation (https://wicg.github.io/document-policy/#reporting): a document used a feature that its document policy (or its report-only policy) disables.

public sealed class DocumentPolicyViolationReportBody : ReportBody
Inheritance
ReportBody DocumentPolicyViolationReportBody

Properties

NameDescription
ColumnNumberGets the column of the script that used the feature, or null.
DispositionGets enforce when the policy was enforced, or report for a violation of the report-only policy.
FeatureIdGets the token of the configuration point whose policy is violated (e.g. sync-xhr).
LineNumberGets the line of the script that used the feature, or null.
MessageGets a message that describes the violation, or null.
SourceFileGets the URL of the script that used the feature, or null.

ColumnNumber

DocumentPolicy.cs

Gets the column of the script that used the feature, or null.

public int? ColumnNumber { get; init; }

Gets enforce when the policy was enforced, or report for a violation of the report-only policy.

public string Disposition { get; init; }

Gets the token of the configuration point whose policy is violated (e.g. sync-xhr).

public string FeatureId { get; init; }

Gets the line of the script that used the feature, or null.

public int? LineNumber { get; init; }

Gets a message that describes the violation, or null.

public string? Message { get; init; }

Gets the URL of the script that used the feature, or null.

public string? SourceFile { get; init; }