Struct Diagnostic
- Namespace
- NetPdf
- Assembly
- NetPdf.dll
A diagnostic emitted during conversion — an unsupported feature, a malformed rule,
a failed resource load, or a raster-fallback notification. Codes are stable and
versioned; see docs/diagnostics-codes.md for the registry.
public readonly record struct Diagnostic : IEquatable<Diagnostic>
- Implements
- Inherited Members
Constructors
Diagnostic(string, string, DiagnosticSeverity)
Convenience constructor with unknown source location.
public Diagnostic(string code, string message, DiagnosticSeverity severity)
Parameters
codestringmessagestringseverityDiagnosticSeverity
Diagnostic(string, string, DiagnosticSeverity, SourceLocation)
A diagnostic emitted during conversion — an unsupported feature, a malformed rule,
a failed resource load, or a raster-fallback notification. Codes are stable and
versioned; see docs/diagnostics-codes.md for the registry.
public Diagnostic(string Code, string Message, DiagnosticSeverity Severity, SourceLocation Location)
Parameters
CodestringMessagestringSeverityDiagnosticSeverityLocationSourceLocation
Properties
Code
public string Code { get; init; }
Property Value
Location
public SourceLocation Location { get; init; }
Property Value
Message
public string Message { get; init; }
Property Value
Severity
public DiagnosticSeverity Severity { get; init; }