ValidationErrorResult
Encapsulates a validation result.
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class ValidationErrorResult
Properties
Success
View Source
Declaration
public static ValidationErrorResult Success { get; }
SuccessCode
Gets or sets the success code.
View Source
Declaration
public string SuccessCode { get; protected set; }
ErrorCode
Gets or sets the error code.
View Source
Declaration
public string ErrorCode { get; set; }
SuccessMessage
Gets or sets the success message.
View Source
Declaration
public string SuccessMessage { get; set; }
ErrorMessage
Gets or sets the error message.
View Source
Declaration
public string ErrorMessage { get; set; }
Message
View Source
Declaration
public virtual string Message { get; }
Errors
The errors generated by the validation.
View Source
Declaration
public IList<ValidationErrorField> Errors { get; protected set; }
IsValid
Returns True if the validation was successful (errors list is empty).
View Source
Declaration
public virtual bool IsValid { get; }
Methods
Merge(ValidationErrorResult)
Merge errors from another ServiceStack.Validation.ValidationErrorResult
View Source
Declaration
public void Merge(ValidationErrorResult result)
Parameters
Type | Name |
---|---|
ServiceStack.Validation.ValidationErrorResult | result |