Class ValidationResult
- Namespace
- Cratis.Applications.Validation
- Assembly
- Cratis.Applications.dll
Represents the an failed validation rule.
public record ValidationResult : IEquatable<ValidationResult>
- Inheritance
-
ValidationResult
- Implements
- Inherited Members
Constructors
ValidationResult(ValidationResultSeverity, string, IEnumerable<string>, object)
Represents the an failed validation rule.
public ValidationResult(ValidationResultSeverity Severity, string Message, IEnumerable<string> Members, object State)
Parameters
Severity
ValidationResultSeverityThe ValidationResultSeverity of the result.
Message
stringMessage of the error.
Members
IEnumerable<string>Collection of member names that caused the failure.
State
objectState associated with the validation result.
Properties
Members
Collection of member names that caused the failure.
public IEnumerable<string> Members { get; init; }
Property Value
Message
Message of the error.
public string Message { get; init; }
Property Value
Severity
The ValidationResultSeverity of the result.
public ValidationResultSeverity Severity { get; init; }
Property Value
State
State associated with the validation result.
public object State { get; init; }