Table of Contents

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 ValidationResultSeverity

The ValidationResultSeverity of the result.

Message string

Message of the error.

Members IEnumerable<string>

Collection of member names that caused the failure.

State object

State associated with the validation result.

Properties

Members

Collection of member names that caused the failure.

public IEnumerable<string> Members { get; init; }

Property Value

IEnumerable<string>

Message

Message of the error.

public string Message { get; init; }

Property Value

string

Severity

The ValidationResultSeverity of the result.

public ValidationResultSeverity Severity { get; init; }

Property Value

ValidationResultSeverity

State

State associated with the validation result.

public object State { get; init; }

Property Value

object