49 types derived from ValidationAttribute
Microsoft.AspNetCore.Mvc.Core.Test (5)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (7)
Microsoft.AspNetCore.Mvc.IntegrationTests (11)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Telemetry (2)
Shared (2)
System.ComponentModel.Annotations (13)
122 references to ValidationAttribute
FormatterWebSite (4)
HtmlGenerationWebSite (4)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Microsoft.AspNetCore.Mvc.DataAnnotations (25)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (15)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.OpenApi (3)
System.ComponentModel.Annotations (61)
System\ComponentModel\DataAnnotations\Validator.cs (23)
13/// <see cref="ValidationAttribute" />
24/// This method will test each <see cref="ValidationAttribute" /> associated with the property
76/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
103/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
106/// is <c>true</c>, this method will also evaluate the <see cref="ValidationAttribute" />s for all the immediate
157/// Tests whether the given value is valid against a specified list of <see cref="ValidationAttribute" />s.
160/// This method will test each <see cref="ValidationAttribute" />s specified. If
181/// The list of <see cref="ValidationAttribute" />s to validate this
186ICollection<ValidationResult>? validationResults, IEnumerable<ValidationAttribute> validationAttributes)
235/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
259/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
296/// <see cref="ValidationAttribute" />s.
299/// This method evaluates the <see cref="ValidationAttribute" />s supplied until a validation error occurs,
308/// <param name="validationAttributes">The list of <see cref="ValidationAttribute" />s to validate against this instance.</param>
312IEnumerable<ValidationAttribute> validationAttributes)
480foreach (ValidationAttribute attribute in attributes)
554ValidationContext validationContext, IEnumerable<ValidationAttribute> attributes, bool breakOnFirstError)
563foreach (ValidationAttribute attribute in attributes)
578foreach (ValidationAttribute attr in attributes)
598/// Tests whether a value is valid against a single <see cref="ValidationAttribute" /> using the
610private static bool TryValidate(object? value, ValidationContext validationContext, ValidationAttribute attribute,
633private readonly ValidationAttribute? _validationAttribute;
635internal ValidationError(ValidationAttribute? validationAttribute, object? value,
System.ComponentModel.DataAnnotations (1)