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
ReportBodyDocumentPolicyViolationReportBody
Properties
| Name | Description |
|---|---|
| ColumnNumber | Gets the column of the script that used the feature, or null. |
| Disposition | Gets enforce when the policy was enforced, or report for a violation of the report-only policy. |
| FeatureId | Gets the token of the configuration point whose policy is violated (e.g. sync-xhr). |
| LineNumber | Gets the line of the script that used the feature, or null. |
| Message | Gets a message that describes the violation, or null. |
| SourceFile | Gets the URL of the script that used the feature, or null. |
ColumnNumber
DocumentPolicy.csGets the column of the script that used the feature, or null.
public int? ColumnNumber { get; init; }Disposition
DocumentPolicy.csGets enforce when the policy was enforced, or report for a violation of the report-only policy.
public string Disposition { get; init; }FeatureId
DocumentPolicy.csGets the token of the configuration point whose policy is violated (e.g. sync-xhr).
public string FeatureId { get; init; }LineNumber
DocumentPolicy.csGets the line of the script that used the feature, or null.
public int? LineNumber { get; init; }Message
DocumentPolicy.csGets a message that describes the violation, or null.
public string? Message { get; init; }SourceFile
DocumentPolicy.csGets the URL of the script that used the feature, or null.
public string? SourceFile { get; init; }