Class ToolDiagnostic
A diagnostic of a document, as GetDiagnostics answers it.
public sealed record ToolDiagnostic : IEquatable<ToolDiagnostic>
- Inheritance
-
ToolDiagnostic
- Implements
- Inherited Members
Properties
Code
The diagnostic's code (RDC01011, VBC00013).
public string Code { get; init; }
Property Value
HasFix
Whether a code action fixes it.
public bool HasFix { get; init; }
Property Value
HelpUrl
The address of the page that documents the code; null for a code that has none.
public string? HelpUrl { get; init; }
Property Value
Location
Where the diagnostic is.
public required TextLocation Location { get; init; }
Property Value
Message
What it says, in the language of the client's user interface.
public string Message { get; init; }
Property Value
Severity
How severe it is.
public ToolDiagnosticSeverity Severity { get; init; }