36 types derived from ValidationAttribute
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (3)
Microsoft.Extensions.Diagnostics.Probes (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Telemetry (3)
Shared (2)
System.ComponentModel.Annotations (14)
156 references to ValidationAttribute
Microsoft.AspNetCore.Components.Endpoints (9)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (25)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.OpenApi (3)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (2)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Resilience (13)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Validation (1)
System.ComponentModel.Annotations (84)
System\ComponentModel\DataAnnotations\Validator.cs (41)
15/// <see cref="ValidationAttribute" />
26/// This method will test each <see cref="ValidationAttribute" /> associated with the property
78/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
105/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
108/// is <c>true</c>, this method will also evaluate the <see cref="ValidationAttribute" />s for all the immediate
159/// Tests whether the given value is valid against a specified list of <see cref="ValidationAttribute" />s.
162/// This method will test each <see cref="ValidationAttribute" />s specified. If
183/// The list of <see cref="ValidationAttribute" />s to validate this
188ICollection<ValidationResult>? validationResults, IEnumerable<ValidationAttribute> validationAttributes)
237/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
261/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
298/// <see cref="ValidationAttribute" />s.
301/// This method evaluates the <see cref="ValidationAttribute" />s supplied until a validation error occurs,
310/// <param name="validationAttributes">The list of <see cref="ValidationAttribute" />s to validate against this instance.</param>
314IEnumerable<ValidationAttribute> validationAttributes)
330/// This method will test each <see cref="ValidationAttribute" /> associated with the property
383/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
385/// the <see cref="ValidationAttribute" />s on individual properties of the object unless
411/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object instance's type. It also
414/// is <c>true</c>, this method will also evaluate the <see cref="ValidationAttribute" />s for all the immediate
474/// Asynchronously tests whether the given value is valid against a specified list of <see cref="ValidationAttribute" />s.
477/// This method will test each <see cref="ValidationAttribute" />s specified. If
488/// <param name="validationAttributes">The list of <see cref="ValidationAttribute" />s to validate this <paramref name="value" /> against.</param>
495IEnumerable<ValidationAttribute> validationAttributes,
544/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
570/// This method evaluates all <see cref="ValidationAttribute" />s attached to the object's type.
609/// <see cref="ValidationAttribute" />s.
613/// <param name="validationAttributes">The list of <see cref="ValidationAttribute" />s to validate against this instance.</param>
621IEnumerable<ValidationAttribute> validationAttributes,
782foreach (ValidationAttribute attribute in attributes)
812IEnumerable<ValidationAttribute> attributes,
824foreach (ValidationAttribute attribute in attributes)
839foreach (ValidationAttribute attr in attributes)
1089foreach (ValidationAttribute attribute in attributes)
1162ValidationContext validationContext, IEnumerable<ValidationAttribute> attributes, bool breakOnFirstError)
1171foreach (ValidationAttribute attribute in attributes)
1186foreach (ValidationAttribute attr in attributes)
1206/// Tests whether a value is valid against a single <see cref="ValidationAttribute" /> using the
1218private static bool TryValidate(object? value, ValidationContext validationContext, ValidationAttribute attribute,
1241private readonly ValidationAttribute? _validationAttribute;
1243internal ValidationError(ValidationAttribute? validationAttribute, object? value,
System.ComponentModel.DataAnnotations (1)