Table of Contents

Class ValidationRuleResultBase<TResult>

Namespace
GroupeIsa.Neos.Domain.Rules.ValidationRules
Assembly
GroupeIsa.Neos.Domain.Abstractions.dll

Represents a validation rule result base.

public abstract class ValidationRuleResultBase<TResult> where TResult : ValidationRuleResultBase<TResult>

Type Parameters

TResult

Result type.

Inheritance
ValidationRuleResultBase<TResult>
Derived
Inherited Members

Constructors

ValidationRuleResultBase()

Initializes a new instance of the ValidationRuleResultBase<TResult> class.

protected ValidationRuleResultBase()

Properties

Errors

Gets the messages of the validation rule.

public IList<string> Errors { get; }

Property Value

IList<string>

IsSuccess

Gets a value indicating whether this result is a success.

public bool IsSuccess { get; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WithError(string)

Adds a message.

public TResult WithError(string message)

Parameters

message string

Message.

Returns

TResult

Updated result.