6 instantiations of ValidationException
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
504throw new ValidationException(FormatErrorMessage(name), this, value); 538throw new ValidationException(result, this, value);
System\ComponentModel\DataAnnotations\ValidationException.cs (3)
49/// <see cref="ValidationException(string, ValidationAttribute, object)" />. 60/// <see cref="ValidationException(string, ValidationAttribute, object)" /> overload. 76/// <see cref="ValidationException(string, ValidationAttribute, object)" />.
System\ComponentModel\DataAnnotations\Validator.cs (1)
1350internal void ThrowValidationException() => throw new ValidationException(ValidationResult, _validationAttribute, _value);
26 references to ValidationException
System.ComponentModel.Annotations (25)
System\ComponentModel\DataAnnotations\AsyncValidationAttribute.cs (1)
127/// validation attribute without throwing a <see cref="ValidationException" />.
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (7)
448/// validation attribute without throwing a <see cref="ValidationException" /> 482/// Validates the specified <paramref name="value" /> and throws <see cref="ValidationException" /> if it is not. 492/// the problem, and it will throw a <see cref="ValidationException" /> 496/// <exception cref="ValidationException"> 509/// Validates the specified <paramref name="value" /> and throws <see cref="ValidationException" /> if it is not. 516/// a <see cref="ValidationException" /> containing the <see cref="ValidationResult" /> describing the problem. 520/// <exception cref="ValidationException">
System\ComponentModel\DataAnnotations\Validator.cs (17)
218/// Throws a <see cref="ValidationException" /> if the given property <paramref name="value" /> is not valid. 226/// <exception cref="ValidationException">When <paramref name="value" /> is invalid for this property.</exception> 244/// Throws a <see cref="ValidationException" /> if the given <paramref name="instance" /> is not valid. 265/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 273/// Throws a <see cref="ValidationException" /> if the given object instance is not valid. 296/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 317/// Throw a <see cref="ValidationException" /> if the given value is not valid for the 322/// at which time a <see cref="ValidationException" /> is thrown. 332/// <exception cref="ValidationException">When <paramref name="value" /> is found to be invalid.</exception> 570/// Asynchronously throws a <see cref="ValidationException" /> if the given property <paramref name="value" /> is not valid. 584/// <exception cref="ValidationException">When <paramref name="value" /> is invalid for this property.</exception> 605/// Asynchronously throws a <see cref="ValidationException" /> if the given <paramref name="instance" /> is not valid. 635/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 647/// Asynchronously throws a <see cref="ValidationException" /> if the given object instance is not valid. 678/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 703/// Asynchronously throws a <see cref="ValidationException" /> if the given value is not valid for the 713/// <exception cref="ValidationException">When <paramref name="value" /> is found to be invalid.</exception>
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
44[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.ValidationException))]