3 instantiations of ValidationException
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
472throw new ValidationException(FormatErrorMessage(name), this, value); 506throw new ValidationException(result, this, value);
System\ComponentModel\DataAnnotations\Validator.cs (1)
645internal void ThrowValidationException() => throw new ValidationException(ValidationResult, _validationAttribute, _value);
17 references to ValidationException
System.ComponentModel.Annotations (16)
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (7)
406/// validation attribute without throwing a <see cref="ValidationException" /> 450/// Validates the specified <paramref name="value" /> and throws <see cref="ValidationException" /> if it is not. 460/// the problem, and it will throw a <see cref="ValidationException" /> 464/// <exception cref="ValidationException"> 477/// Validates the specified <paramref name="value" /> and throws <see cref="ValidationException" /> if it is not. 484/// a <see cref="ValidationException" /> containing the <see cref="ValidationResult" /> describing the problem. 488/// <exception cref="ValidationException">
System\ComponentModel\DataAnnotations\Validator.cs (9)
206/// Throws a <see cref="ValidationException" /> if the given property <paramref name="value" /> is not valid. 214/// <exception cref="ValidationException">When <paramref name="value" /> is invalid for this property.</exception> 232/// Throws a <see cref="ValidationException" /> if the given <paramref name="instance" /> is not valid. 248/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 256/// Throws a <see cref="ValidationException" /> if the given object instance is not valid. 274/// <exception cref="ValidationException">When <paramref name="instance" /> is found to be invalid.</exception> 295/// Throw a <see cref="ValidationException" /> if the given value is not valid for the 300/// at which time a <see cref="ValidationException" /> is thrown. 310/// <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))]