ValidationResult
The result of running a validator
Assembly: ServiceStack.dll
View Source
Declaration
[Serializable]
public class ValidationResult
Properties
IsValid
Whether validation succeeded
View Source
Declaration
public virtual bool IsValid { get; }
Errors
A collection of errors
View Source
Declaration
public IList<ValidationFailure> Errors { get; }
RuleSetsExecuted
View Source
Declaration
public string[] RuleSetsExecuted { get; }
Request
View Source
Declaration
public IRequest Request { get; set; }
Methods
ToString()
Generates a string representation of the error messages separated by new lines.
View Source
Declaration
public override string ToString()
Returns
System.String
ToString(String)
Generates a string representation of the error messages separated by the specified character.
View Source
Declaration
public string ToString(string separator)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.String | separator | The character to separate the error messages. |
|