3 instantiations of ValidationException
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
483
throw new
ValidationException
(FormatErrorMessage(name), this, value);
517
throw new
ValidationException
(result, this, value);
System\ComponentModel\DataAnnotations\Validator.cs (1)
1253
internal void ThrowValidationException() => throw new
ValidationException
(ValidationResult, _validationAttribute, _value);
26 references to ValidationException
System.ComponentModel.Annotations (25)
System\ComponentModel\DataAnnotations\AsyncValidationAttribute.cs (1)
92
/// validation attribute without throwing a <see cref="
ValidationException
" />.
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (7)
427
/// validation attribute without throwing a <see cref="
ValidationException
" />
461
/// Validates the specified <paramref name="value" /> and throws <see cref="
ValidationException
" /> if it is not.
471
/// the problem, and it will throw a <see cref="
ValidationException
" />
475
/// <exception cref="
ValidationException
">
488
/// Validates the specified <paramref name="value" /> and throws <see cref="
ValidationException
" /> if it is not.
495
/// a <see cref="
ValidationException
" /> containing the <see cref="ValidationResult" /> describing the problem.
499
/// <exception cref="
ValidationException
">
System\ComponentModel\DataAnnotations\Validator.cs (17)
208
/// Throws a <see cref="
ValidationException
" /> if the given property <paramref name="value" /> is not valid.
216
/// <exception cref="
ValidationException
">When <paramref name="value" /> is invalid for this property.</exception>
234
/// Throws a <see cref="
ValidationException
" /> if the given <paramref name="instance" /> is not valid.
250
/// <exception cref="
ValidationException
">When <paramref name="instance" /> is found to be invalid.</exception>
258
/// Throws a <see cref="
ValidationException
" /> if the given object instance is not valid.
276
/// <exception cref="
ValidationException
">When <paramref name="instance" /> is found to be invalid.</exception>
297
/// Throw a <see cref="
ValidationException
" /> if the given value is not valid for the
302
/// at which time a <see cref="
ValidationException
" /> is thrown.
312
/// <exception cref="
ValidationException
">When <paramref name="value" /> is found to be invalid.</exception>
514
/// Asynchronously throws a <see cref="
ValidationException
" /> if the given property <paramref name="value" /> is not valid.
521
/// <exception cref="
ValidationException
">When <paramref name="value" /> is invalid for this property.</exception>
541
/// Asynchronously throws a <see cref="
ValidationException
" /> if the given <paramref name="instance" /> is not valid.
556
/// <exception cref="
ValidationException
">When <paramref name="instance" /> is found to be invalid.</exception>
567
/// Asynchronously throws a <see cref="
ValidationException
" /> if the given object instance is not valid.
584
/// <exception cref="
ValidationException
">When <paramref name="instance" /> is found to be invalid.</exception>
608
/// Asynchronously throws a <see cref="
ValidationException
" /> if the given value is not valid for the
617
/// <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
))]