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
-
objectRequirementStatus
- 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
IsOkboolIndicates whether the requirement is met.
RequirementRequirementThe requirement being checked.
AspectAspectThe aspect of the requirement.
MessagestringAn 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
Message
An optional message if the requirement is not met.
public string? Message { get; init; }
Property Value
Requirement
The requirement being checked.
public Requirement Requirement { get; init; }
Property Value
- Requirement