3 instantiations of ValidationError
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\Validator.cs (3)
440
errors.Add(new
ValidationError
(null, instance, result));
489
errors.Add(new
ValidationError
(reqAttr, property.Value, validationResult!));
618
validationError = new
ValidationError
(attribute, value, validationResult!);
15 references to ValidationError
System.ComponentModel.Annotations (15)
System\ComponentModel\DataAnnotations\Validator.cs (15)
62
foreach (
var
err in GetValidationErrors(value, validationContext, attributes, breakOnFirstError))
146
foreach (
ValidationError
err in GetObjectValidationErrors(instance, validationContext!, validateAllProperties, breakOnFirstError))
194
var
err in
224
List<
ValidationError
> errors = GetValidationErrors(value, validationContext, attributes, false);
287
List<
ValidationError
> errors = GetObjectValidationErrors(instance, validationContext, validateAllProperties, false);
317
List<
ValidationError
> errors = GetValidationErrors(value, validationContext, validationAttributes, false);
403
private static List<
ValidationError
> GetObjectValidationErrors(object instance,
411
List<
ValidationError
> errors = GetObjectPropertyValidationErrors(instance, validationContext, validateAllProperties, breakOnFirstError);
459
/// <returns>A list of <see cref="
ValidationError
" /> instances.</returns>
461
private static List<
ValidationError
> GetObjectPropertyValidationErrors(object instance,
465
var errors = new List<
ValidationError
>();
553
private static List<
ValidationError
> GetValidationErrors(object? value,
558
var errors = new List<
ValidationError
>();
559
ValidationError
? validationError;
611
[NotNullWhen(false)] out
ValidationError
? validationError)