AsyncMediator.ValidationContext.AddError C# (CSharp) Method

AddError() public method

Adds a validation error.
public AddError ( string memberName, string errorMessage ) : void
memberName string The member that has caused validation to fail.
errorMessage string The validation error message.
return void
        public void AddError(string memberName, string errorMessage)
        {
            ValidationResults.Add(new ValidationResult(errorMessage, new[] { memberName }));
        }