Table of Contents

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

Outcome UriSafetyValidator.SafetyOutcome

The three-state safety verdict.

Reason string

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.

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

bool

Outcome

The three-state safety verdict.

public UriSafetyValidator.SafetyOutcome Outcome { get; init; }

Property Value

UriSafetyValidator.SafetyOutcome

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; }

Property Value

string