Table of Contents

Class RequirementStatus

Namespace
ToSic.Sys.Requirements
Assembly
ToSic.Sys.Features.dll

Feedback about a requirement check, including the requirement itself, the aspect of the requirement, and an optional message if the requirement is not met.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record RequirementStatus : IEquatable<RequirementStatus>
Inheritance
object
RequirementStatus
Implements

Constructors

RequirementStatus(bool, Requirement, Aspect, string?)

Feedback about a requirement check, including the requirement itself, the aspect of the requirement, and an optional message if the requirement is not met.

public RequirementStatus(bool IsOk, Requirement Requirement, Aspect Aspect, string? Message)

Parameters

IsOk bool

Indicates whether the requirement is met.

Requirement Requirement

The requirement being checked.

Aspect Aspect

The aspect of the requirement.

Message string

An optional message if the requirement is not met.

Properties

Aspect

The aspect of the requirement.

public Aspect Aspect { get; init; }

Property Value

Aspect

IsOk

Indicates whether the requirement is met.

public bool IsOk { get; init; }

Property Value

bool

Message

An optional message if the requirement is not met.

public string? Message { get; init; }

Property Value

string

Requirement

The requirement being checked.

public Requirement Requirement { get; init; }

Property Value

Requirement