4 instantiations of MinLengthAttribute
Microsoft.Extensions.AI.Abstractions.Tests (3)
Utilities\AIJsonUtilitiesTests.cs (3)
1092[MinLength(5)] 1098[MinLength(2)] 1154[MinLength(10)]
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
558[MinLength(1)]
17 references to MinLengthAttribute
Microsoft.AspNetCore.Components.Forms (1)
ClientValidation\DefaultClientValidationService.cs (1)
95case MinLengthAttribute minla:
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
MinLengthAttributeAdapter.cs (2)
11internal sealed class MinLengthAttributeAdapter : AttributeAdapterBase<MinLengthAttribute> 15public MinLengthAttributeAdapter(MinLengthAttribute attribute, IStringLocalizer? stringLocalizer)
ValidationAttributeAdapterProvider.cs (2)
42else if (typeof(MinLengthAttribute).IsAssignableFrom(type)) 44return new MinLengthAttributeAdapter((MinLengthAttribute)attribute, stringLocalizer);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
456if (ResolveAttribute<MinLengthAttribute>() is { } minLengthAttribute)
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Validation.Localization (3)
BuiltInFormatters.cs (1)
33internal sealed class MinLengthAttributeFormatter(MinLengthAttribute attribute) : IValidationAttributeFormatter
ValidationAttributeFormatterRegistry.cs (2)
40/// <see cref="MinLengthAttribute"/>, <see cref="StringLengthAttribute"/>, etc.) are registered 66AddFormatter<MinLengthAttribute>(a => new MinLengthAttributeFormatter(a));
Shared (1)
Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
17/// Initializes a new instance of the <see cref="MinLengthAttribute" /> class.
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.MinLengthAttribute))]