Table of Contents

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

code string
message string
severity DiagnosticSeverity

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

Code string
Message string
Severity DiagnosticSeverity
Location SourceLocation

Properties

Code

public string Code { get; init; }

Property Value

string

Location

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Message

public string Message { get; init; }

Property Value

string

Severity

public DiagnosticSeverity Severity { get; init; }

Property Value

DiagnosticSeverity