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
TResultResult 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
IsSuccess
Gets a value indicating whether this result is a success.
public bool IsSuccess { get; }
Property Value
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
messagestringMessage.
Returns
- TResult
Updated result.