10 references to GetValidationResult
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsModelValidator.cs (1)
83
var result = Attribute.
GetValidationResult
(validationContext.Model, context);
Shared.Tests (2)
Data.Validation\LengthAttributeTests.cs (1)
373
var result = attr.
GetValidationResult
(value, context);
Data.Validation\TimeSpanAttributeTests.cs (1)
250
var result = attr.
GetValidationResult
(value, context);
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
342
/// The preferred public entry point for clients requesting validation is the <see cref="
GetValidationResult
" />
501
ValidationResult? result =
GetValidationResult
(value, validationContext);
System\ComponentModel\DataAnnotations\ValidationResult.cs (3)
14
/// <seealso cref="ValidationAttribute.
GetValidationResult
" />
37
/// The user-visible error message. If null, <see cref="ValidationAttribute.
GetValidationResult
" />
50
/// The user-visible error message. If null, <see cref="ValidationAttribute.
GetValidationResult
" />
System\ComponentModel\DataAnnotations\Validator.cs (2)
486
var validationResult = reqAttr.
GetValidationResult
(property.Value, property.Key);
615
var validationResult = attribute.
GetValidationResult
(value, validationContext);