Struct UriSafetyValidator.Verdict
- Namespace
- NetPdf
- Assembly
- NetPdf.dll
Result of a validation check.
public readonly record struct UriSafetyValidator.Verdict : IEquatable<UriSafetyValidator.Verdict>
- Implements
- Inherited Members
Constructors
Verdict(SafetyOutcome, string?)
Result of a validation check.
public Verdict(UriSafetyValidator.SafetyOutcome Outcome, string? Reason)
Parameters
OutcomeUriSafetyValidator.SafetyOutcomeThe three-state safety verdict.
ReasonstringWhen Outcome is Unsafe, a human-readable reason suitable for diagnostic emission. For RequiresBasePathCheck, names the follow-up check the loader must perform. null when Outcome is Safe.
Properties
IsSafe
Convenience: true only when Outcome is Safe. Callers that need the three-state distinction should switch on Outcome directly.
public bool IsSafe { get; }
Property Value
Outcome
The three-state safety verdict.
public UriSafetyValidator.SafetyOutcome Outcome { get; init; }
Property Value
Reason
When Outcome is Unsafe, a human-readable reason suitable for diagnostic emission. For RequiresBasePathCheck, names the follow-up check the loader must perform. null when Outcome is Safe.
public string? Reason { get; init; }