Diagnostic(String, DiagnosticSeverity, String, Nullable, CosReference?) Constructor

Definition

Assembly Broadside.dll

Initializes a new instance of the Diagnostic class.

public Diagnostic(string code, DiagnosticSeverity severity, string message, long? offset = default(long? ), CosReference? objectReference = null)

Parameters

code
String

The stable identifier of the kind of deviation.

severity
DiagnosticSeverity

How much the repair may have changed the document.

message
String

A human-readable description of the deviation and the repair.

offset
Nullable<Int64>

The byte offset in the file where the deviation was found, when known.

objectReference
CosReference

The indirect object the deviation is in, when known.