Report Class

The application-exposed representation of a report (https://w3c.github.io/reporting/#dictdef-report), given to the callback of a ReportingObserver.

public sealed class Report

Constructors

NameDescription
Report()

Report()

Report.cs
public Report()

No documentation is available.

Properties

NameDescription
BodyGets the body of the report, whose members depend on its type, or null.
TypeGets the type of the report (e.g. csp-violation).
UrlGets the URL of the document or worker that generated the report, without its credentials and its fragment.

Gets the body of the report, whose members depend on its type, or null.

public ReportBody? Body { get; init; }

Gets the type of the report (e.g. csp-violation).

public string Type { get; init; }

Gets the URL of the document or worker that generated the report, without its credentials and its fragment.

public string Url { get; init; }